Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 96a420d

Browse files
author
Greg Turner
committed
Catch any error trying to update width/height fields.
1 parent 49adcb1 commit 96a420d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from django.db.models import ImageField
22

3-
43
class QuietImageField(ImageField):
54
"""An imagefield that doesn't lose the plot when trying to find the
65
dimensions of an image that doesn't exist"""
76
def update_dimension_fields(self, *args, **kwargs):
87
try:
98
super(QuietImageField, self).update_dimension_fields(*args, **kwargs)
10-
except IOError:
9+
except:
1110
pass

0 commit comments

Comments
 (0)