From f30ad65dbf3c6b1b5eec14dc954d65ef32327857 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Sat, 23 Oct 2021 00:13:46 +0100 Subject: bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569) --- Python/pylifecycle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python') diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index c5a209abae..9ce845ca61 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1662,6 +1662,8 @@ finalize_interp_clear(PyThreadState *tstate) { int is_main_interp = _Py_IsMainInterpreter(tstate->interp); + _PyExc_ClearExceptionGroupType(tstate->interp); + /* Clear interpreter state and all thread states */ _PyInterpreterState_Clear(tstate); -- cgit v1.2.1