summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject.c
diff options
context:
space:
mode:
authorSimon van der Linden <svdlinden@src.gnome.org>2010-01-21 17:30:51 +0100
committerSimon van der Linden <svdlinden@src.gnome.org>2010-02-02 22:10:22 +0100
commit23fc0f615d87994acafd9d39e92dd92b587fc2eb (patch)
treebe5cf6c7221aab920d43c7547379593aa9df9033 /gobject/pygobject.c
parent289d641775d1ea52d2a5379126b70b7fcee46683 (diff)
downloadpygobject-23fc0f615d87994acafd9d39e92dd92b587fc2eb.tar.gz
pygobject-23fc0f615d87994acafd9d39e92dd92b587fc2eb.tar.xz
pygobject-23fc0f615d87994acafd9d39e92dd92b587fc2eb.zip
Don't raise an error in _pygi_import if pygi support is disabled
http://bugzilla.gnome.org/show_bug.cgi?id=607674
Diffstat (limited to 'gobject/pygobject.c')
-rw-r--r--gobject/pygobject.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index 222280b..f8d7dd1 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -874,12 +874,8 @@ pygobject_lookup_class(GType gtype)
if (py_type == NULL) {
py_type = g_type_get_qdata(gtype, pyginterface_type_key);
- if (py_type == NULL) {
+ if (py_type == NULL)
py_type = (PyTypeObject *)pygi_type_import_by_g_type(gtype);
- if (py_type == NULL) {
- PyErr_Clear();
- }
- }
if (py_type == NULL) {
py_type = pygobject_new_with_interfaces(gtype);