ignore missing class methods in Vips.py
thanks Ben see https://github.com/jcupitt/libvips/issues/199
This commit is contained in:
parent
ecc0975667
commit
aa6c883434
@ -933,8 +933,12 @@ def generate_class_method(name):
|
|||||||
|
|
||||||
for nickname in class_methods:
|
for nickname in class_methods:
|
||||||
logging.debug('adding %s as a class method' % nickname)
|
logging.debug('adding %s as a class method' % nickname)
|
||||||
|
# some may be missing in this vips, eg. we might not have "webpload"
|
||||||
|
try:
|
||||||
method = generate_class_method(nickname)
|
method = generate_class_method(nickname)
|
||||||
setattr(Vips.Image, nickname, method)
|
setattr(Vips.Image, nickname, method)
|
||||||
|
except Error:
|
||||||
|
pass
|
||||||
|
|
||||||
Image = override(Image)
|
Image = override(Image)
|
||||||
__all__.append('Image')
|
__all__.append('Image')
|
||||||
|
Loading…
Reference in New Issue
Block a user