1
0
mirror of https://github.com/django/django.git synced 2025-03-04 06:05:02 +00:00

Replaced e.message with e.args[0] in 3aa4b8165da23a2f094d0eeffacbda5484f4c1f6.

This commit is contained in:
Florian Apolloner 2013-01-01 13:13:31 +01:00
parent 009235b138
commit a4a4b139cd

View File

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