From: Shamil Date: Mon, 12 Jan 2026 16:19:57 +0000 (+0300) Subject: [3.13] gh-140306: Clear uncaught exception info after applying error in subinterprete... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab8224697afc820dd6f13435e0ffd0ce2fac7c7b;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-140306: Clear uncaught exception info after applying error in subinterpreter (GH-140397) --- diff --git a/Python/crossinterp.c b/Python/crossinterp.c index caa1cb6702b8..d150c6e03c08 100644 --- a/Python/crossinterp.c +++ b/Python/crossinterp.c @@ -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; }