From 5bd0cb7c4e7599ac0c314d68498f56ddaa286fda Mon Sep 17 00:00:00 2001 From: Hugo Slepicka Date: Wed, 15 Jul 2020 08:11:28 -0700 Subject: [PATCH] FIX: Ignore empty entry at PYDM_STYLESHEET. --- pydm/utilities/stylesheet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pydm/utilities/stylesheet.py b/pydm/utilities/stylesheet.py index fbaee4c64..65362dd1e 100644 --- a/pydm/utilities/stylesheet.py +++ b/pydm/utilities/stylesheet.py @@ -90,6 +90,8 @@ def _get_style_data(stylesheet_file_path=None): if stylesheet_file_path is not None: files = stylesheet_file_path.split(os.pathsep) for f in files[::-1]: + if not f: + continue try: with open(f, 'r') as stylesheet_file: logger.debug(