diff options
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 977b80ac6..4662bcc35 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -399,8 +399,9 @@ class ImageModel(models.Model, ImageContainerModel): thumb_filename, self.create_thumb(image, self.THUMB_MAX_SIZE), save=False) - except IOError: - pass + except (IOError, ValueError): + self.thumbnail = None + self.image = None finally: if image: image.close() |