Removed unused exception "as" variable.
This commit is contained in:
parent
6d7784a7b9
commit
0824c02603
|
@ -64,7 +64,7 @@ def get_image_dimensions(file_or_path, close=False):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
except struct.error as e:
|
except struct.error:
|
||||||
# Ignore PIL failing on a too short buffer when reads return
|
# Ignore PIL failing on a too short buffer when reads return
|
||||||
# less bytes than expected. Skip and feed more data to the
|
# less bytes than expected. Skip and feed more data to the
|
||||||
# parser (ticket #24544).
|
# parser (ticket #24544).
|
||||||
|
|
Loading…
Reference in New Issue