From 848bdbe166b71ab2ac2c0c1d88432fb995d1444c Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Sat, 1 Apr 2023 06:01:48 +0100 Subject: gh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (#103157) --- Python/bytecodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/bytecodes.c') diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 825fa705a4..617b6f311e 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1842,7 +1842,7 @@ dummy_func( ERROR_IF(match == NULL, error); if (!Py_IsNone(match)) { - PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL); + PyErr_SetHandledException(match); } } -- cgit v1.2.1