diff Python/ceval.c @ 83455:d18df4c90515 3.3

#17413: make sure settrace funcs get passed exception instances for 'value'. Patch by Ingrid Cheung and Brendan McLoughlin.
author R David Murray <rdmurray@bitdance.com>
date Fri, 19 Apr 2013 12:56:57 -0400
parents ee55f8e4fb50
children 2b4b289c1abb 6297fcddf912
line wrap: on
line diff
--- a/Python/ceval.c	Fri Apr 19 11:32:25 2013 -0400
+++ b/Python/ceval.c	Fri Apr 19 12:56:57 2013 -0400
@@ -3712,6 +3712,7 @@
         value = Py_None;
         Py_INCREF(value);
     }
+    PyErr_NormalizeException(&type, &value, &traceback);
     arg = PyTuple_Pack(3, type, value, traceback);
     if (arg == NULL) {
         PyErr_Restore(type, value, traceback);