Fixed WMF save handler check

This commit is contained in:
Andrew Murray 2017-08-19 18:53:09 +10:00
parent e6115c87ab
commit 751a6d1c2d

View File

@ -153,7 +153,7 @@ class WmfStubImageFile(ImageFile.StubImageFile):
def _save(im, fp, filename):
if _handler is None or not hasattr("_handler", "save"):
if _handler is None or not hasattr(_handler, "save"):
raise IOError("WMF save handler not installed")
_handler.save(im, fp, filename)