Skip to content

Commit 751a6d1

Browse files
committed
Fixed WMF save handler check
1 parent e6115c8 commit 751a6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PIL/WmfImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _load(self):
153153

154154

155155
def _save(im, fp, filename):
156-
if _handler is None or not hasattr("_handler", "save"):
156+
if _handler is None or not hasattr(_handler, "save"):
157157
raise IOError("WMF save handler not installed")
158158
_handler.save(im, fp, filename)
159159

0 commit comments

Comments
 (0)