summaryrefslogtreecommitdiffstats
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-01 05:01:48 (GMT)
committerGitHub <noreply@github.com>2023-04-01 05:01:48 (GMT)
commit848bdbe166b71ab2ac2c0c1d88432fb995d1444c (patch)
tree035fb695218756c673a5e612ad08ae3fa26dc9dd /Python/generated_cases.c.h
parentd97aef8ebfbbb275384b17f06945e583fb3189ea (diff)
downloadcpython-848bdbe166b71ab2ac2c0c1d88432fb995d1444c.zip
cpython-848bdbe166b71ab2ac2c0c1d88432fb995d1444c.tar.gz
cpython-848bdbe166b71ab2ac2c0c1d88432fb995d1444c.tar.bz2
gh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (#103157)
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 6bb37d6..7df585b 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -2591,7 +2591,7 @@
if (match == NULL) goto pop_2_error;
if (!Py_IsNone(match)) {
- PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL);
+ PyErr_SetHandledException(match);
}
#line 2597 "Python/generated_cases.c.h"
stack_pointer[-1] = match;