diff options
author | Fred Drake <fdrake@acm.org> | 1998-05-28 04:35:12 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-05-28 04:35:12 (GMT) |
commit | bebc97fcd75fcd49ad31e9393378469cce1e1bc7 (patch) | |
tree | f1a523a306f6051cdbe3325c9378f3cfe2b6c35e /Modules/threadmodule.c | |
parent | 764b984db508f40d7add9162920681827f3f22d5 (diff) | |
download | cpython-bebc97fcd75fcd49ad31e9393378469cce1e1bc7.zip cpython-bebc97fcd75fcd49ad31e9393378469cce1e1bc7.tar.gz cpython-bebc97fcd75fcd49ad31e9393378469cce1e1bc7.tar.bz2 |
t_bootstrap(): Use PyErr_ExceptionMatches(...) instead of PyErr_Occurred(...).
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 51c24d1..539b347 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"); |