From a4a4b139cd1b2e5dd7a05f195c8990f4d94e882d Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Tue, 1 Jan 2013 13:13:31 +0100 Subject: [PATCH] Replaced e.message with e.args[0] in 3aa4b8165da23a2f094d0eeffacbda5484f4c1f6. --- django/core/files/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/files/images.py b/django/core/files/images.py index a8d3d8018b..3baedda4cc 100644 --- a/django/core/files/images.py +++ b/django/core/files/images.py @@ -64,7 +64,7 @@ def get_image_dimensions(file_or_path, close=False): except zlib.error as e: # ignore zlib complaining on truncated stream, just feed more # data to parser (ticket #19457). - if e.message.startswith("Error -5"): + if e.args[0].startswith("Error -5"): pass else: six.reraise(*sys.exc_info())