Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit a4a4b139cd1b2e5dd7a05f195c8990f4d94e882d 1 parent 009235b
Florian Apolloner authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/files/images.py
2  django/core/files/images.py
@@ -64,7 +64,7 @@ def get_image_dimensions(file_or_path, close=False):
64 64
             except zlib.error as e:
65 65
                 # ignore zlib complaining on truncated stream, just feed more
66 66
                 # data to parser (ticket #19457).
67  
-                if e.message.startswith("Error -5"):
  67
+                if e.args[0].startswith("Error -5"):
68 68
                     pass
69 69
                 else:
70 70
                     six.reraise(*sys.exc_info())

0 notes on commit a4a4b13

Please sign in to comment.
Something went wrong with that request. Please try again.