From 3c7ce5f6fe6da4b6c5637f020bffba627a1ea5eb Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 18 Jun 2016 19:42:43 +0100 Subject: [PATCH] better invalid test --- python/packages/gi/overrides/Vips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/gi/overrides/Vips.py b/python/packages/gi/overrides/Vips.py index 6961b839..e083c0ce 100644 --- a/python/packages/gi/overrides/Vips.py +++ b/python/packages/gi/overrides/Vips.py @@ -873,7 +873,7 @@ class Image(Vips.Image): logger.debug('%s.%s needs a %s' % (self, field, gtype)) # there must be a better way to test for GType(0) - if gtype.name != 'invalid': + if gtype != GObject.TYPE_INVALID: # blob-ize if GObject.type_is_a(gtype, vips_type_blob): if not isinstance(value, Vips.Blob):