diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-10-23 00:13:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 00:13:46 +0100 |
commit | f30ad65dbf3c6b1b5eec14dc954d65ef32327857 (patch) | |
tree | 410d8eb9335a1e405cbc7092e8f5a36e592ad712 /Python | |
parent | 4bc5473a42c5eae0928430930b897209492e849d (diff) | |
download | cpython-git-f30ad65dbf3c6b1b5eec14dc954d65ef32327857.tar.gz |
bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |