]> granicus.if.org Git - python/commitdiff
t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
authorFred Drake <fdrake@acm.org>
Thu, 28 May 1998 04:35:12 +0000 (04:35 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 28 May 1998 04:35:12 +0000 (04:35 +0000)
Modules/threadmodule.c

index 51c24d13f5168e0ffada5eeeb700cd87ec984d08..539b3470f0077a9d7689b183af473827ac348740 100644 (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");