From 23fc0f615d87994acafd9d39e92dd92b587fc2eb Mon Sep 17 00:00:00 2001 From: Simon van der Linden Date: Thu, 21 Jan 2010 17:30:51 +0100 Subject: Don't raise an error in _pygi_import if pygi support is disabled http://bugzilla.gnome.org/show_bug.cgi?id=607674 --- gobject/pygobject.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gobject/pygobject.c') 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); -- cgit