mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
This commit is contained in:
parent
764b984db5
commit
bebc97fcd7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue