Skip to content

Commit

Permalink
fix: TypeError if no SVGPaths are set
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi committed Jan 9, 2024
1 parent b68be1e commit e80d51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def run_gui_control(self):

# add ors svg path
my_new_path = os.path.join(basepath, "img/svg")
svg_paths = QSettings().value("svg/searchPathsForSVG")
svg_paths = QSettings().value("svg/searchPathsForSVG") or []
if my_new_path not in svg_paths:
svg_paths.append(my_new_path)
QSettings().setValue("svg/searchPathsForSVG", svg_paths)
Expand Down

0 comments on commit e80d51b

Please sign in to comment.