Skip to content

Commit

Permalink
Replaced e.message with e.args[0] in 3aa4b81.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Jan 1, 2013
1 parent 009235b commit a4a4b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/files/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a4a4b13

Please sign in to comment.