diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1997-10-07 21:47:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1997-10-07 21:47:25 (GMT) |
commit | 55e3927f58b848f0c980158527270b172a7ac68b (patch) | |
tree | 10e85ee614d64cb37d3f86e8cbf61e188c09369d /Mac/Modules/macspeechmodule.c | |
parent | d2c0ec78d20d5e4de34f87e273e6bfb5eb152987 (diff) | |
download | cpython-55e3927f58b848f0c980158527270b172a7ac68b.zip cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.gz cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.bz2 |
New exception interface
Diffstat (limited to 'Mac/Modules/macspeechmodule.c')
-rw-r--r-- | Mac/Modules/macspeechmodule.c | 6 |
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"); } |