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);
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");