Merge pull request #726 from cgohlke/patch-3

Fix AttributeError: class Image has no attribute 'DEBUG'
This commit is contained in:
Hugo 2014-06-25 10:47:00 +03:00
commit 66b369aac8

View File

@ -539,7 +539,7 @@ class Image:
try: try:
self.fp.close() self.fp.close()
except Exception as msg: except Exception as msg:
if Image.DEBUG: if DEBUG:
print ("Error closing: %s" % msg) print ("Error closing: %s" % msg)
# Instead of simply setting to None, we're setting up a # Instead of simply setting to None, we're setting up a