]> granicus.if.org Git - python/commitdiff
use bare raise so you get the original tb
authorJust van Rossum <just@letterror.com>
Wed, 26 Feb 2003 15:28:17 +0000 (15:28 +0000)
committerJust van Rossum <just@letterror.com>
Wed, 26 Feb 2003 15:28:17 +0000 (15:28 +0000)
Lib/plat-mac/aetools.py

index 8d9657e70121760dc40b44069a3872f737db2331..79d69589a670cecd5cd656bb7320dabffbb8bab6 100644 (file)
@@ -83,7 +83,7 @@ def unpackevent(ae, formodulename=""):
                        desc = ae.AEGetAttributeDesc(key, '****')
                except (AE.Error, MacOS.Error), msg:
                        if msg[0] != -1701 and msg[0] != -1704:
-                               raise sys.exc_type, sys.exc_value
+                               raise
                        continue
                attributes[key] = unpack(desc, formodulename)
        return parameters, attributes