Avoid unhandled TypeError when trying to read binary plists with plistlib when makecatalogs is run against non-Apple Python

This commit is contained in:
Greg Neagle
2017-07-26 16:09:21 -07:00
parent 2826e601b4
commit 4d1571f2a8
+1 -1
View File
@@ -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: