Skip to content

Commit ab82246

Browse files
authored
[3.13] gh-140306: Clear uncaught exception info after applying error in subinterpreter (GH-140397)
1 parent 8b7ebbb commit ab82246

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
@@ -1692,6 +1692,7 @@ _PyXI_ApplyCapturedException(_PyXI_session *session)
16921692
assert(session->error != NULL);
16931693
PyObject *res = _PyXI_ApplyError(session->error);
16941694
assert((res == NULL) != (PyErr_Occurred() == NULL));
1695+
_PyXI_excinfo_Clear(&session->error->uncaught);
16951696
session->error = NULL;
16961697
return res;
16971698
}

0 commit comments

Comments
 (0)