munkilib/updatecheck/compare.py: Catch KeyError when attempting to find applications in installs arrays when an application item might not have a path key/value

This commit is contained in:
Greg Neagle
2017-11-28 09:44:20 -08:00
parent f7f7f527b4
commit 0dc1f02511
+2 -1
View File
@@ -386,7 +386,8 @@ def get_installed_version(item_plist):
'Contents', 'Info.plist')
plist = FoundationPlist.readPlist(filepath)
return plist.get('CFBundleShortVersionString', 'UNKNOWN')
except FoundationPlist.NSPropertyListSerializationException:
except (KeyError,
FoundationPlist.NSPropertyListSerializationException):
# that didn't work, fall through to the slow way
appinfo = []
appdata = info.app_data()