diff options
author | Fred Drake <fdrake@acm.org> | 1998-05-28 04:35:12 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-05-28 04:35:12 +0000 |
commit | f7a6663c40cbea2e30cb22ab2babc46368001b5f (patch) | |
tree | 5594d0918d442422bdac45112534da7fe5771ac1 /Modules/threadmodule.c | |
parent | 65fc0c3d560cdf3e342a2b9c0f70873960774443 (diff) | |
download | cpython-f7a6663c40cbea2e30cb22ab2babc46368001b5f.tar.gz |
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 51c24d13f5..539b3470f0 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"); |