mirror of https://github.com/python/cpython
t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
This commit is contained in:
parent
764b984db5
commit
bebc97fcd7
|
@ -215,7 +215,7 @@ t_bootstrap(boot_raw)
|
|||
Py_XDECREF(boot->keyw);
|
||||
PyMem_DEL(boot_raw);
|
||||
if (res == NULL) {
|
||||
if (PyErr_Occurred() == PyExc_SystemExit)
|
||||
if (PyErr_ExceptionMatches(PyExc_SystemExit))
|
||||
PyErr_Clear();
|
||||
else {
|
||||
fprintf(stderr, "Unhandled exception in thread:\n");
|
||||
|
|
Loading…
Reference in New Issue