summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2013-08-19 18:42:48 -0400
committerAndrew Godwin <andrew@aeracode.org>2013-08-21 22:30:02 +0100
commite9b703f5a5e5de68a28abd2e6651e6100b0c6b49 (patch)
tree96a15d604c05e5fe0704d0f5f46c4c7d2b6d4830
parent2e7f45a3721a8afbc61a4320ae9ab3908d1e81b4 (diff)
Correctly format missing Pillow/PIL exceptions messages. refs #19934
-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 dd2fab6197..8df5850338 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.