From a5ae40c1b43ab97df21ff3655caebf5e66c8813b Mon Sep 17 00:00:00 2001 From: cgohlke Date: Tue, 24 Jun 2014 22:53:23 -0700 Subject: [PATCH] Fix AttributeError: class Image has no attribute 'DEBUG' --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index 0d97e9dc7..787e60270 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -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