diff options
author | Georg Brandl <georg@python.org> | 2008-01-06 21:13:42 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-01-06 21:13:42 (GMT) |
commit | d11b68ab0834be4be76fca479cd4426eb45dfaec (patch) | |
tree | bc05f1c9ac1e0460d2f30531fcb31ab09084979e /Lib/plat-mac/aetools.py | |
parent | 7357c23ee72d687433452555018e9931159a2dfa (diff) | |
download | cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.zip cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.gz cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.bz2 |
Fix more exception slicing.
Diffstat (limited to 'Lib/plat-mac/aetools.py')
-rw-r--r-- | Lib/plat-mac/aetools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/aetools.py b/Lib/plat-mac/aetools.py index dd06e3e..7ba5074 100644 --- a/Lib/plat-mac/aetools.py +++ b/Lib/plat-mac/aetools.py @@ -86,7 +86,7 @@ def unpackevent(ae, formodulename=""): try: desc = ae.AEGetAttributeDesc(key, '****') except (AE.Error, MacOS.Error) as msg: - if msg[0] != -1701 and msg[0] != -1704: + if msg.args[0] not in (-1701, -1704): raise continue attributes[key] = unpack(desc, formodulename) |