diff options
Diffstat (limited to 'Mac/Modules/ctbmodule.c')
-rw-r--r-- | Mac/Modules/ctbmodule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Mac/Modules/ctbmodule.c b/Mac/Modules/ctbmodule.c index 6eabca9..bb6fd18 100644 --- a/Mac/Modules/ctbmodule.c +++ b/Mac/Modules/ctbmodule.c @@ -606,13 +606,9 @@ initctb() CMCONST("cmStatusListenPend", 0x2000); CMCONST("cmStatusIncomingCallPresent", 0x4000); - ErrorObject = PyString_FromString("ctb.error"); + ErrorObject = PyErr_NewException("ctb.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); ctbcmtype.ob_type = &PyType_Type; Py_INCREF(&ctbcmtype); PyDict_SetItemString(d, "CTBConnectionMgrType", (PyObject *)&ctbcmtype); - - /* Check for errors */ - if (PyErr_Occurred()) - Py_FatalError("can't initialize module ctb"); } |