summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macspeechmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/macspeechmodule.c')
-rw-r--r--Mac/Modules/macspeechmodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Mac/Modules/macspeechmodule.c b/Mac/Modules/macspeechmodule.c
index 22fe99a..d0ee465 100644
--- a/Mac/Modules/macspeechmodule.c
+++ b/Mac/Modules/macspeechmodule.c
@@ -541,10 +541,6 @@ initmacspeech()
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
- ms_error_object = PyString_FromString("macspeech.error");
+ ms_error_object = PyErr_NewException("macspeech.error", NULL, NULL);
PyDict_SetItemString(d, "error", ms_error_object);
-
- /* Check for errors */
- if (PyErr_Occurred())
- Py_FatalError("can't initialize module macspeech");
}