mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fix AttributeError: class Image has no attribute 'DEBUG'
This commit is contained in:
parent
68c502db8b
commit
a5ae40c1b4
|
@ -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