diff options
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 49cefcc..214263f 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -356,13 +356,9 @@ initthread() /* Add a symbolic constant */ d = PyModule_GetDict(m); - ThreadError = PyString_FromString("thread.error"); + ThreadError = PyErr_NewException("thread.error", NULL, NULL); PyDict_SetItemString(d, "error", ThreadError); - /* Check for errors */ - if (PyErr_Occurred()) - Py_FatalError("can't initialize module thread"); - /* Initialize the C thread library */ init_thread(); } |