Don't raise KeyError when SystemLibraryPath is absent

This commit is contained in:
Thibault Deutsch
2020-06-18 23:43:55 +01:00
parent e98c3fe429
commit 1fd0f96b14

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