From 1fd0f96b14f0bc38e47bddb4cae12e19406324fb Mon Sep 17 00:00:00 2001 From: Thibault Deutsch Date: Thu, 18 Jun 2020 23:43:55 +0100 Subject: [PATCH] Don't raise KeyError when SystemLibraryPath is absent --- osxphotos/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osxphotos/utils.py b/osxphotos/utils.py index dbab5900..fc042e9a 100644 --- a/osxphotos/utils.py +++ b/osxphotos/utils.py @@ -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