summaryrefslogtreecommitdiff
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
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);
}
}