Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.6.x] Correctly format missing Pillow/PIL exceptions messages. refs…

… #19934

Backport of b9590a6 from master.
  • Loading branch information...
commit e7a6eaf5fee9c5854e0d2d86f21132ac4a1415f6 1 parent a6ac4f9
@charettes charettes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/
4 django/utils/
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.