Commits

Philip Jenvey  committed 59a08db

woops, 83685d0 broke raising, fix

  • Participants
  • Parent commits 8a643ca
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/atexit/app_atexit.py

                 # obscure: we can't use sys.exc_info() here because this
                 # function is an appleveldef which marks its frame as
                 # hidden
-                traceback.print_exception(type(e), e, e.__traceback__)
+                last_exc = e
+                last_tb = e.__traceback__
+                traceback.print_exception(type(last_exc), last_exc, last_tb)
 
     clear()