better invalid test
This commit is contained in:
parent
11b136b2df
commit
3c7ce5f6fe
@ -873,7 +873,7 @@ class Image(Vips.Image):
|
|||||||
logger.debug('%s.%s needs a %s' % (self, field, gtype))
|
logger.debug('%s.%s needs a %s' % (self, field, gtype))
|
||||||
|
|
||||||
# there must be a better way to test for GType(0)
|
# there must be a better way to test for GType(0)
|
||||||
if gtype.name != 'invalid':
|
if gtype != GObject.TYPE_INVALID:
|
||||||
# blob-ize
|
# blob-ize
|
||||||
if GObject.type_is_a(gtype, vips_type_blob):
|
if GObject.type_is_a(gtype, vips_type_blob):
|
||||||
if not isinstance(value, Vips.Blob):
|
if not isinstance(value, Vips.Blob):
|
||||||
|
Loading…
Reference in New Issue
Block a user