mirror of
https://github.com/munki/munki.git
synced 2026-05-07 21:09:38 -05:00
Avoid unhandled TypeError when trying to read binary plists with plistlib when makecatalogs is run against non-Apple Python
This commit is contained in:
@@ -75,7 +75,7 @@ else:
|
||||
try:
|
||||
pref.cache = plistlib.readPlist(PREFSPATH)
|
||||
except (IOError, OSError, ExpatError):
|
||||
pass
|
||||
pref.cache = {}
|
||||
if prefname in pref.cache:
|
||||
return pref.cache[prefname]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user