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/ctbmodule.c | |
parent | d2c0ec78d20d5e4de34f87e273e6bfb5eb152987 (diff) | |
download | cpython-55e3927f58b848f0c980158527270b172a7ac68b.zip cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.gz cpython-55e3927f58b848f0c980158527270b172a7ac68b.tar.bz2 |
New exception interface
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"); } |