mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
Replaced e.message with e.args[0] in 3aa4b8165d
.
This commit is contained in:
parent
009235b138
commit
a4a4b139cd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def get_image_dimensions(file_or_path, close=False):
|
||||||
except zlib.error as e:
|
except zlib.error as e:
|
||||||
# ignore zlib complaining on truncated stream, just feed more
|
# ignore zlib complaining on truncated stream, just feed more
|
||||||
# data to parser (ticket #19457).
|
# data to parser (ticket #19457).
|
||||||
if e.message.startswith("Error -5"):
|
if e.args[0].startswith("Error -5"):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
six.reraise(*sys.exc_info())
|
six.reraise(*sys.exc_info())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue