summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-08 13:09:51 -0400
committerTim Graham <timograham@gmail.com>2015-04-08 13:09:51 -0400
commit0824c026035b75b3aa32ad9b19b700fed487de27 (patch)
treea4d4e30eed1b16c3a4b2951713f368c040c438d8
parent6d7784a7b994eb8287ec851b22acb5170e77a90a (diff)
Removed unused exception "as" variable.
-rw-r--r--django/core/files/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/files/images.py b/django/core/files/images.py
index 47b3585d39..20c338250f 100644
--- a/django/core/files/images.py
+++ b/django/core/files/images.py
@@ -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).