mirror of
https://github.com/python/cpython.git
synced 2026-01-22 07:08:40 +00:00
[3.13] gh-140306: Clear uncaught exception info after applying error in subinterpreter (GH-140397)
This commit is contained in:
parent
8b7ebbb432
commit
ab8224697a
1 changed files with 1 additions and 0 deletions
|
|
@ -1692,6 +1692,7 @@ _PyXI_ApplyCapturedException(_PyXI_session *session)
|
|||
assert(session->error != NULL);
|
||||
PyObject *res = _PyXI_ApplyError(session->error);
|
||||
assert((res == NULL) != (PyErr_Occurred() == NULL));
|
||||
_PyXI_excinfo_Clear(&session->error->uncaught);
|
||||
session->error = NULL;
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue