summaryrefslogtreecommitdiff
path: root/numpy/lib/src/_compiled_base.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-24 17:57:17 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-24 17:57:17 +0000
commit0917323eb52e2eed8bc84bf844cbcdcd6e6bd12e (patch)
treebfb9d75c864e35745385f339bbf95507cb694961 /numpy/lib/src/_compiled_base.c
parent5beecfe93c4755dc18726b8135e79ef06cdfc470 (diff)
downloadnumpy-0917323eb52e2eed8bc84bf844cbcdcd6e6bd12e.tar.gz
Don't raise fatal errors on load.
Diffstat (limited to 'numpy/lib/src/_compiled_base.c')
-rw-r--r--numpy/lib/src/_compiled_base.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c
index 797fc7a1f..9af8fca0f 100644
--- a/numpy/lib/src/_compiled_base.c
+++ b/numpy/lib/src/_compiled_base.c
@@ -437,7 +437,7 @@ DL_EXPORT(void) init_compiled_base(void) {
m = Py_InitModule("_compiled_base", methods);
/* Import the array and ufunc objects */
- import_array();
+ if (import_array() < 0) return;
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
@@ -454,7 +454,5 @@ DL_EXPORT(void) init_compiled_base(void) {
/* define PyGetSetDescr_Type and PyMemberDescr_Type */
define_types();
- /* Check for errors */
- if (PyErr_Occurred())
- Py_FatalError("can't initialize module _compiled_base");
+ return;
}