1
0
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:
Tim Graham 2015-04-08 13:09:51 -04:00
parent 6d7784a7b9
commit 0824c02603

View File

@ -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).