summaryrefslogtreecommitdiff
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-01 06:01:48 +0100
committerGitHub <noreply@github.com>2023-04-01 10:31:48 +0530
commit848bdbe166b71ab2ac2c0c1d88432fb995d1444c (patch)
tree035fb695218756c673a5e612ad08ae3fa26dc9dd /Python/bytecodes.c
parentd97aef8ebfbbb275384b17f06945e583fb3189ea (diff)
downloadcpython-git-848bdbe166b71ab2ac2c0c1d88432fb995d1444c.tar.gz
gh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (#103157)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}