Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r84437:6f8938f4a309
Date: 2016-05-14 11:46 -0700
http://bitbucket.org/pypy/pypy/changeset/6f8938f4a309/

Log:    cpython issue17413: normalize exceptions for settrace callbacks

diff --git a/pypy/interpreter/executioncontext.py 
b/pypy/interpreter/executioncontext.py
--- a/pypy/interpreter/executioncontext.py
+++ b/pypy/interpreter/executioncontext.py
@@ -316,6 +316,7 @@
 
         if w_callback is not None and event != "leaveframe":
             if operr is not None:
+                operr.normalize_exception(space)
                 w_value = operr.get_w_value(space)
                 w_arg = space.newtuple([operr.w_type, w_value,
                                      space.wrap(operr.get_traceback())])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to