fix pygtk modules import error handling

parent 043ce52a
2006-01-24 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* src/nautilus-python.h (np_init_pygobject): Don't try to set an
exception if PyImport_ImportModule returns NULL. Instead, print
the current exception and issue a g_warning.
(np_init_pygtk): idem. PS: macros that return values behind your
back are _EVIL_.
2005-09-22 Johan Dahlin <johan@gnome.org>
* configure.in:
......
......@@ -49,8 +49,8 @@
return FALSE; \
} \
} else { \
PyErr_SetString(PyExc_ImportError, \
"could not import gobject"); \
PyErr_Print(); \
g_warning("could not import gobject"); \
return FALSE; \
} \
}
......@@ -69,8 +69,8 @@
return FALSE; \
} \
} else { \
PyErr_SetString(PyExc_ImportError, \
"could not import gtk._gtk"); \
PyErr_Print(); \
g_warning("could not import gtk._gtk"); \
return FALSE; \
} \
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment