diff options
| author | Simon van der Linden <svdlinden@src.gnome.org> | 2010-01-21 17:30:51 +0100 |
|---|---|---|
| committer | Simon van der Linden <svdlinden@src.gnome.org> | 2010-02-02 22:10:22 +0100 |
| commit | 23fc0f615d87994acafd9d39e92dd92b587fc2eb (patch) | |
| tree | be5cf6c7221aab920d43c7547379593aa9df9033 /gobject/pygobject.c | |
| parent | 289d641775d1ea52d2a5379126b70b7fcee46683 (diff) | |
| download | pygobject-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.c | 6 |
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); |
