mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-10 13:03:41 -04:00
19 lines
620 B
Plaintext
19 lines
620 B
Plaintext
$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;
|