From bebc97fcd75fcd49ad31e9393378469cce1e1bc7 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 28 May 1998 04:35:12 +0000 Subject: [PATCH] t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...). --- Modules/threadmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 51c24d13f51..539b3470f00 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");