better invalid test

This commit is contained in:
John Cupitt 2016-06-18 19:42:43 +01:00
parent 11b136b2df
commit 3c7ce5f6fe
1 changed files with 1 additions and 1 deletions

View File

@ -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):