Skip to content

Commit

Permalink
Merge pull request #1773 from torchbox/revert-1768-feature/improve_ex…
Browse files Browse the repository at this point in the history
…ception_handling

Revert "Use model specific "DoesNotExist" exception "
  • Loading branch information
gasman committed Oct 4, 2015
2 parents 7dd5467 + bfe8cb1 commit 2534ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wagtail/wagtailimages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from willow.image import Image as WillowImage

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.models.signals import pre_delete, pre_save
from django.dispatch.dispatcher import receiver
Expand Down Expand Up @@ -223,7 +223,7 @@ def get_rendition(self, filter):
filter=filter,
focal_point_key=cache_key,
)
except Rendition.DoesNotExist:
except ObjectDoesNotExist:
# Generate the rendition image
generated_image, output_format = filter.run(self, BytesIO())

Expand Down

0 comments on commit 2534ee6

Please sign in to comment.