Fix AttributeError: class Image has no attribute 'DEBUG'

This commit is contained in:
cgohlke 2014-06-24 22:53:23 -07:00
parent 68c502db8b
commit a5ae40c1b4

View File

@ -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