diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 23:32:51 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-13 23:32:51 +0000 |
| commit | 19ac481a2cfb46a56c4959e414afa30cfad7073d (patch) | |
| tree | 375326adc45914c8c329154cbff2f1abc9e2351c /Mac/Tools/IDE/MacPrefs.py | |
| parent | 9937a04994f0ae25e85cdebdadc19fa4cf5fc909 (diff) | |
| download | cpython-git-19ac481a2cfb46a56c4959e414afa30cfad7073d.tar.gz | |
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/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 716c828c33..6c7c553a83 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__': |
