diff Mac/Modules/macspeechmodule.c @ 6442:ddfcefc0d826 legacy-trunk

New exception interface
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 07 Oct 1997 21:47:25 +0000
parents ac235c9e6881
children 3fe304050434
line wrap: on
line diff
--- a/Mac/Modules/macspeechmodule.c	Tue Oct 07 21:22:48 1997 +0000
+++ b/Mac/Modules/macspeechmodule.c	Tue Oct 07 21:47:25 1997 +0000
@@ -541,10 +541,6 @@
 
 	/* 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");
 }