Merge pull request #168 from dethi/thibault/fix-exception-when-SystemLibraryPath-is-not-present

Don't raise KeyError when SystemLibraryPath is absent
This commit is contained in:
Rhet Turnbull
2020-06-18 21:38:53 -07:00
committed by GitHub

View File

@@ -169,7 +169,7 @@ def get_system_library_path():
logging.warning(f"could not find plist file: {str(plist_file)}")
return None
photospath = pl["SystemLibraryPath"]
photospath = pl.get("SystemLibraryPath")
if photospath is not None:
return photospath