18 lines
620 B
Text
18 lines
620 B
Text
$NetBSD: patch-ac,v 1.1.1.1 2002/02/05 21:05:58 drochner Exp $
|
|
--- src/mod_python.c.orig Sat Nov 10 13:06:57 2001
|
|
+++ src/mod_python.c Sat Nov 10 13:07:53 2001
|
|
@@ -474,11 +474,13 @@
|
|
|
|
if (! ((m = PyImport_ImportModule(MODULENAME)))) {
|
|
fprintf(stderr, "make_obcallback(): could not import %s.\n", MODULENAME);
|
|
+ PyErr_Print();
|
|
}
|
|
|
|
- if (! ((obCallBack = PyObject_CallMethod(m, INITFUNC, NULL)))) {
|
|
+ if (m && ! ((obCallBack = PyObject_CallMethod(m, INITFUNC, NULL)))) {
|
|
fprintf(stderr, "make_obcallback(): could not call %s.\n",
|
|
INITFUNC);
|
|
+ PyErr_Print();
|
|
}
|
|
|
|
return obCallBack;
|