summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Tools/IDE/MacPrefs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/MacPrefs.py b/Mac/Tools/IDE/MacPrefs.py
index f8888fc..b1fa7ca 100644
--- a/Mac/Tools/IDE/MacPrefs.py
+++ b/Mac/Tools/IDE/MacPrefs.py
@@ -50,7 +50,8 @@ class PrefFile(PrefObject):
self._prefsdict = {}
try:
prefdict = marshal.load(open(self.__path, 'rb'))
- except IOError:
+ except (IOError, ValueError):
+ # file not found, or currupt marshal data
pass
else:
for key, value in prefdict.items():