diff options
Diffstat (limited to 'Mac/Tools/IDE/MacPrefs.py')
-rw-r--r-- | Mac/Tools/IDE/MacPrefs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/MacPrefs.py b/Mac/Tools/IDE/MacPrefs.py index 716c828..6c7c553 100644 --- a/Mac/Tools/IDE/MacPrefs.py +++ b/Mac/Tools/IDE/MacPrefs.py @@ -70,8 +70,11 @@ class PrefFile(PrefObject): else: prefdict[key] = value marshal.dump(prefdict, open(self.__path, 'wb')) - fss = macfs.FSSpec(macfs.FSRef(self.__path)) - fss.SetCreatorType(self.__creator, 'pref') + try: + fss = macfs.FSSpec(macfs.FSRef(self.__path)) + fss.SetCreatorType(self.__creator, 'pref') + except: + pass def __getattr__(self, attr): if attr == '__members__': |