Browse files

Correctly format missing Pillow/PIL exceptions messages. refs #19934

  • Loading branch information...
1 parent 2e7f45a commit e9b703f5a5e5de68a28abd2e6651e6100b0c6b49 @charettes charettes committed with andrewgodwin Aug 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/image.py
View
4 django/utils/image.py
@@ -102,7 +102,7 @@ def _detect_image_library():
except ImportError as err:
# Neither worked, so it's likely not installed.
raise ImproperlyConfigured(
- _("Neither Pillow nor PIL could be imported: %s" % err)
+ _("Neither Pillow nor PIL could be imported: %s") % err
)
# ``Image.alpha_composite`` was added to Pillow in SHA: e414c6 & is not
@@ -125,7 +125,7 @@ def _detect_image_library():
except ImportError as err:
raise ImproperlyConfigured(
_("The '_imaging' module for the PIL could not be "
- "imported: %s" % err)
+ "imported: %s") % err
)
# Try to import ImageFile as well.

0 comments on commit e9b703f

Please sign in to comment.