mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-09 16:10:48 +03:00
Fixed WMF save handler check
This commit is contained in:
parent
e6115c87ab
commit
751a6d1c2d
|
@ -153,7 +153,7 @@ class WmfStubImageFile(ImageFile.StubImageFile):
|
||||||
|
|
||||||
|
|
||||||
def _save(im, fp, filename):
|
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")
|
raise IOError("WMF save handler not installed")
|
||||||
_handler.save(im, fp, filename)
|
_handler.save(im, fp, filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user