mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
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
|
||||
else:
|
||||
raise
|
||||
except struct.error as e:
|
||||
except struct.error:
|
||||
# Ignore PIL failing on a too short buffer when reads return
|
||||
# less bytes than expected. Skip and feed more data to the
|
||||
# parser (ticket #24544).
|
||||
|
Loading…
Reference in New Issue
Block a user