diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-04-19 16:56:57 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-04-19 16:56:57 (GMT) |
commit | 3583761bcd3ebc85207f555017e06f2007cd0db0 (patch) | |
tree | 2ead936be019af64ca6bb6e3795505243e11d995 /Python | |
parent | 0aa685a33c49ebb731c565348355b6c9a756b831 (diff) | |
download | cpython-3583761bcd3ebc85207f555017e06f2007cd0db0.zip cpython-3583761bcd3ebc85207f555017e06f2007cd0db0.tar.gz cpython-3583761bcd3ebc85207f555017e06f2007cd0db0.tar.bz2 |
#17413: make sure settrace funcs get passed exception instances for 'value'.
Patch by Ingrid Cheung and Brendan McLoughlin.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 82bfcc6..f427841 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); |