Kaydet (Commit) bebc97fc authored tarafından Fred Drake's avatar Fred Drake

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

üst 764b984d
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment