diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 23:32:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 23:32:51 (GMT) |
commit | 19ac481a2cfb46a56c4959e414afa30cfad7073d (patch) | |
tree | 375326adc45914c8c329154cbff2f1abc9e2351c /Mac | |
parent | 9937a04994f0ae25e85cdebdadc19fa4cf5fc909 (diff) | |
download | cpython-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.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__': |