Skip to content

Commit

Permalink
gh-102192: use PyErr_SetHandledException instead of the legacy PyErr_…
Browse files Browse the repository at this point in the history
…SetExcInfo (#103157)
  • Loading branch information
iritkatriel authored Apr 1, 2023
1 parent d97aef8 commit 848bdbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 848bdbe

Please sign in to comment.