mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Merge pull request #726 from cgohlke/patch-3
Fix AttributeError: class Image has no attribute 'DEBUG'
This commit is contained in:
commit
66b369aac8
|
@ -539,7 +539,7 @@ class Image:
|
|||
try:
|
||||
self.fp.close()
|
||||
except Exception as msg:
|
||||
if Image.DEBUG:
|
||||
if DEBUG:
|
||||
print ("Error closing: %s" % msg)
|
||||
|
||||
# Instead of simply setting to None, we're setting up a
|
||||
|
|
Loading…
Reference in New Issue
Block a user