summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2013-08-19 18:42:48 -0400
committerSimon Charette <charette.s@gmail.com>2013-08-19 18:51:22 -0400
commite7a6eaf5fee9c5854e0d2d86f21132ac4a1415f6 (patch)
tree67619555f58f6d9d613167c45f2e075339a7f2bc
parenta6ac4f90d0d09da884289d6f03df4e4800c8f742 (diff)
[1.6.x] Correctly format missing Pillow/PIL exceptions messages. refs #19934
Backport of b9590a6935 from master.
-rw-r--r--django/utils/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/image.py b/django/utils/image.py
index d251ab9d0b..bb731929a8 100644
--- a/django/utils/image.py
+++ b/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.