From 0824c026035b75b3aa32ad9b19b700fed487de27 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 8 Apr 2015 13:09:51 -0400 Subject: [PATCH] Removed unused exception "as" variable. --- django/core/files/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/files/images.py b/django/core/files/images.py index 47b3585d39d..20c338250f2 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).