0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Revert "Use model specific "DoesNotExist" exception "

This commit is contained in:
Matt Westcott 2015-10-04 11:48:02 +01:00
parent 7dd5467a7c
commit bfe8cb1ac7

View File

@ -10,7 +10,7 @@ from taggit.managers import TaggableManager
from willow.image import Image as WillowImage from willow.image import Image as WillowImage
from django.core.files import File from django.core.files import File
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
from django.db import models from django.db import models
from django.db.models.signals import pre_delete, pre_save from django.db.models.signals import pre_delete, pre_save
from django.dispatch.dispatcher import receiver from django.dispatch.dispatcher import receiver
@ -223,7 +223,7 @@ class AbstractImage(models.Model, TagSearchable):
filter=filter, filter=filter,
focal_point_key=cache_key, focal_point_key=cache_key,
) )
except Rendition.DoesNotExist: except ObjectDoesNotExist:
# Generate the rendition image # Generate the rendition image
generated_image, output_format = filter.run(self, BytesIO()) generated_image, output_format = filter.run(self, BytesIO())