mirror of
https://github.com/munki/munki.git
synced 2026-04-29 00:39:42 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user