commit | 6e7740c790bf41f520e304ec17abf79a5373b5cc | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Aug 20 23:23:34 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Aug 20 23:23:34 2008 +0000 |
tree | d56ae0f5e5952ce1acae9e97372cd148c10e297b | |
parent | 41e36676cd820ece16b9f8db07be8d541f264116 [diff] |
apply a fix for #3611 where the current exception context was deleted with a generator causing a segfault
diff --git a/Python/ceval.c b/Python/ceval.c index 40ce038..3af0cef 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -2453,7 +2453,7 @@ if (b->b_type == EXCEPT_HANDLER) { UNWIND_EXCEPT_HANDLER(b); - if (why == WHY_EXCEPTION) { + if (why == WHY_EXCEPTION && !throwflag) { Py_CLEAR(tstate->exc_type); Py_CLEAR(tstate->exc_value); Py_CLEAR(tstate->exc_traceback);