Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit e9b703f5a5e5de68a28abd2e6651e6100b0c6b49 1 parent 2e7f45a
Simon Charette authored August 19, 2013 andrewgodwin committed August 21, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/utils/image.py
4  django/utils/image.py
@@ -102,7 +102,7 @@ def _detect_image_library():
102 102
         except ImportError as err:
103 103
             # Neither worked, so it's likely not installed.
104 104
             raise ImproperlyConfigured(
105  
-                _("Neither Pillow nor PIL could be imported: %s" % err)
  105
+                _("Neither Pillow nor PIL could be imported: %s") % err
106 106
             )
107 107
 
108 108
     # ``Image.alpha_composite`` was added to Pillow in SHA: e414c6 & is not
@@ -125,7 +125,7 @@ def _detect_image_library():
125 125
             except ImportError as err:
126 126
                 raise ImproperlyConfigured(
127 127
                     _("The '_imaging' module for the PIL could not be "
128  
-                      "imported: %s" % err)
  128
+                      "imported: %s") % err
129 129
                 )
130 130
 
131 131
     # Try to import ImageFile as well.

0 notes on commit e9b703f

Please sign in to comment.
Something went wrong with that request. Please try again.