]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary...
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 13 Dec 2002 23:32:51 +0000 (23:32 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 13 Dec 2002 23:32:51 +0000 (23:32 +0000)
Mac/Tools/IDE/MacPrefs.py

index 716c828c33c8a1f534237a6cf1b15181cf93e350..6c7c553a830ee0b3477992307b8a2538fc75a544 100644 (file)
@@ -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__':