diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-08 10:21:44 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-08 10:21:44 (GMT) |
commit | fa1e27d8d2a907be656f07a43c00d0ec379c5c54 (patch) | |
tree | 322710197943abe76538bfbc1e34382c97d3b2c2 /Mac/Modules/macosmodule.c | |
parent | 65c3ee0f66e3f5231610fdc1f65effc1a8b59e9e (diff) | |
download | cpython-fa1e27d8d2a907be656f07a43c00d0ec379c5c54.zip cpython-fa1e27d8d2a907be656f07a43c00d0ec379c5c54.tar.gz cpython-fa1e27d8d2a907be656f07a43c00d0ec379c5c54.tar.bz2 |
Got rid of Py_FatalError calls.
Diffstat (limited to 'Mac/Modules/macosmodule.c')
-rw-r--r-- | Mac/Modules/macosmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index d373b7e..ec52da4 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -710,11 +710,11 @@ initMacOS() /* Initialize MacOS.Error exception */ MacOS_Error = PyMac_GetOSErrException(); if (MacOS_Error == NULL || PyDict_SetItemString(d, "Error", MacOS_Error) != 0) - Py_FatalError("can't define MacOS.Error"); + return; Rftype.ob_type = &PyType_Type; Py_INCREF(&Rftype); if (PyDict_SetItemString(d, "ResourceForkType", (PyObject *)&Rftype) != 0) - Py_FatalError("can't define MacOS.ResourceForkType"); + return; /* ** This is a hack: the following constant added to the id() of a string ** object gives you the address of the data. Unfortunately, it is needed for @@ -725,10 +725,10 @@ initMacOS() long off = (long)&(p->ob_sval[0]); if( PyDict_SetItemString(d, "string_id_to_buffer", Py_BuildValue("i", off)) != 0) - Py_FatalError("Can't define MacOS.string_id_to_buffer"); + return; } if (PyDict_SetItemString(d, "AppearanceCompliant", Py_BuildValue("i", PyMac_AppearanceCompliant)) != 0) - Py_FatalError("can't define MacOS.AppearanceCompliant"); + return; } |