t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).

This commit is contained in:
Fred Drake 1998-05-28 04:35:12 +00:00
parent 764b984db5
commit bebc97fcd7
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ t_bootstrap(boot_raw)
Py_XDECREF(boot->keyw); Py_XDECREF(boot->keyw);
PyMem_DEL(boot_raw); PyMem_DEL(boot_raw);
if (res == NULL) { if (res == NULL) {
if (PyErr_Occurred() == PyExc_SystemExit) if (PyErr_ExceptionMatches(PyExc_SystemExit))
PyErr_Clear(); PyErr_Clear();
else { else {
fprintf(stderr, "Unhandled exception in thread:\n"); fprintf(stderr, "Unhandled exception in thread:\n");