mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix more exception slicing.
This commit is contained in:
parent
7357c23ee7
commit
d11b68ab08
9 changed files with 15 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue