Skip to content

Commit 61b5939

Browse files
committed
Clear uncaught exception info after applying error
1 parent 9084371 commit 61b5939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/crossinterp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,7 @@ _PyXI_ApplyCapturedException(_PyXI_session *session)
16871687
assert(session->error != NULL);
16881688
PyObject *res = _PyXI_ApplyError(session->error);
16891689
assert((res == NULL) != (PyErr_Occurred() == NULL));
1690+
_PyXI_excinfo_Clear(&session->error->uncaught);
16901691
session->error = NULL;
16911692
return res;
16921693
}

0 commit comments

Comments
 (0)