We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efbf92 commit 9f2f946Copy full SHA for 9f2f946
Modules/atexitmodule.c
@@ -97,7 +97,7 @@ atexit_callfuncs(void)
97
Py_XDECREF(exc_tb);
98
}
99
PyErr_Fetch(&exc_type, &exc_value, &exc_tb);
100
- if (!PyErr_ExceptionMatches(PyExc_SystemExit)) {
+ if (!PyErr_GivenExceptionMatches(exc_type, PyExc_SystemExit)) {
101
PySys_WriteStderr("Error in atexit._run_exitfuncs:\n");
102
PyErr_NormalizeException(&exc_type, &exc_value, &exc_tb);
103
PyErr_Display(exc_type, exc_value, exc_tb);
0 commit comments