From 82c7ea8489b4a6c618cc674fa8f16bd6c36d1719 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 2 Dec 2015 16:32:44 +1100 Subject: [PATCH] Changed string format argument to logger parameter --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index caa66ea0d..af6dac1c4 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -550,7 +550,7 @@ class Image(object): try: self.fp.close() except Exception as msg: - logger.debug("Error closing: %s" % msg) + logger.debug("Error closing: %s", msg) # Instead of simply setting to None, we're setting up a # deferred error that will better explain that the core image