Commit a4a4b139 authored by Florian Apolloner's avatar Florian Apolloner
Browse files

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

parent 009235b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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())