Skip to content

Commit

Permalink
Merge pull request #667 from hhslepicka/fix_ignore_empty_style
Browse files Browse the repository at this point in the history
FIX: Ignore empty entry at PYDM_STYLESHEET.
  • Loading branch information
hhslepicka authored Jul 15, 2020
2 parents 5a4883d + 5bd0cb7 commit e93fbdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydm/utilities/stylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e93fbdb

Please sign in to comment.