From 3583761bcd3ebc85207f555017e06f2007cd0db0 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 19 Apr 2013 12:56:57 -0400 Subject: #17413: make sure settrace funcs get passed exception instances for 'value'. Patch by Ingrid Cheung and Brendan McLoughlin. --- Python/ceval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python') diff --git a/Python/ceval.c b/Python/ceval.c index 82bfcc6128..f42784141d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3712,6 +3712,7 @@ call_exc_trace(Py_tracefunc func, PyObject *self, PyFrameObject *f) 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); -- cgit v1.2.1