diff options
Diffstat (limited to 'Modules/xxmodule.c')
-rw-r--r-- | Modules/xxmodule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c index 465da68..792ef3f 100644 --- a/Modules/xxmodule.c +++ b/Modules/xxmodule.c @@ -231,10 +231,6 @@ initxx() /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); - ErrorObject = PyString_FromString("xx.error"); + ErrorObject = PyErr_NewException("xx.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); - - /* Check for errors */ - if (PyErr_Occurred()) - Py_FatalError("can't initialize module xx"); } |