summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-13 23:32:51 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-13 23:32:51 (GMT)
commit19ac481a2cfb46a56c4959e414afa30cfad7073d (patch)
tree375326adc45914c8c329154cbff2f1abc9e2351c /Mac
parent9937a04994f0ae25e85cdebdadc19fa4cf5fc909 (diff)
downloadcpython-19ac481a2cfb46a56c4959e414afa30cfad7073d.zip
cpython-19ac481a2cfb46a56c4959e414afa30cfad7073d.tar.gz
cpython-19ac481a2cfb46a56c4959e414afa30cfad7073d.tar.bz2
Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary workaround is to ignore the exception (it's only about file creator/type anyway).
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/MacPrefs.py7
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__':