https://github.com/python/cpython/commit/ab8224697afc820dd6f13435e0ffd0ce2fac7c7b
commit: ab8224697afc820dd6f13435e0ffd0ce2fac7c7b
branch: 3.13
author: Shamil <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-01-12T18:19:57+02:00
summary:
[3.13] gh-140306: Clear uncaught exception info after applying error in
subinterpreter (GH-140397)
files:
M Python/crossinterp.c
diff --git a/Python/crossinterp.c b/Python/crossinterp.c
index caa1cb6702b8a6..d150c6e03c080a 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;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]