mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
use bare raise so you get the original tb
This commit is contained in:
parent
37c4728c64
commit
a006b8e468
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ def unpackevent(ae, formodulename=""):
|
||||||
desc = ae.AEGetAttributeDesc(key, '****')
|
desc = ae.AEGetAttributeDesc(key, '****')
|
||||||
except (AE.Error, MacOS.Error), msg:
|
except (AE.Error, MacOS.Error), msg:
|
||||||
if msg[0] != -1701 and msg[0] != -1704:
|
if msg[0] != -1701 and msg[0] != -1704:
|
||||||
raise sys.exc_type, sys.exc_value
|
raise
|
||||||
continue
|
continue
|
||||||
attributes[key] = unpack(desc, formodulename)
|
attributes[key] = unpack(desc, formodulename)
|
||||||
return parameters, attributes
|
return parameters, attributes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue