From: Fred Drake Date: Thu, 28 May 1998 04:35:12 +0000 (+0000) Subject: t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...). X-Git-Tag: v1.5.2a1~540 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bebc97fcd75fcd49ad31e9393378469cce1e1bc7;p=thirdparty%2FPython%2Fcpython.git t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...). --- diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 51c24d13f516..539b3470f007 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -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");