Skip to content

Commit 756ba73

Browse files
iritkatrielwarsaw
authored andcommitted
pythongh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (python#103157)
1 parent 15c48ef commit 756ba73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ dummy_func(
18421842
ERROR_IF(match == NULL, error);
18431843

18441844
if (!Py_IsNone(match)) {
1845-
PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL);
1845+
PyErr_SetHandledException(match);
18461846
}
18471847
}
18481848

Python/generated_cases.c.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)