| <type 'exceptions.KeyError'> | Python 2.6.8: /usr/local/bin/python2.6 Wed Jun 19 10:06:32 2013 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/www/static/scni.media.clients.ellingtoncms.com/media/mogrify.py in |
| 168 </html> |
| 169 """ |
| 170 |
| 171 if __name__ == '__main__': |
| 172 mogrify() |
| mogrify = <function mogrify> |
| /var/www/static/scni.media.clients.ellingtoncms.com/media/mogrify.py in mogrify() |
| 128 m = mogrifier.Mogrifier(original_file) |
| 129 m.apply_action_tuples(action_tuples) |
| 130 m.save(requested_path) |
| 131 |
| 132 print "Location: /%s" % request_uri |
| m = <mogrifier.Mogrifier instance>, m.save = <bound method Mogrifier.save of <mogrifier.Mogrifier instance>>, requested_path = '/var/www/static/scni.media.clients.ellingtoncms....os/2012/08/06/ND_BUN_SENTENCE_PREVIEW_3_CY_t80.jp' |
| /var/www/static/common/mogrifier.py in save(self=<mogrifier.Mogrifier instance>, filename='/var/www/static/scni.media.clients.ellingtoncms....os/2012/08/06/ND_BUN_SENTENCE_PREVIEW_3_CY_t80.jp') |
| 34 def save(self, filename): |
| 35 """Save the mogrified image""" |
| 36 self.im.save(filename, quality=85) |
| 37 |
| 38 def apply_action_tuples(self, actions): |
| self = <mogrifier.Mogrifier instance>, self.im = <JpegImagePlugin.JpegImageFile image mode=RGB size=80x58>, self.im.save = <bound method JpegImageFile.save of <JpegImagePlugin.JpegImageFile image mode=RGB size=80x58>>, filename = '/var/www/static/scni.media.clients.ellingtoncms....os/2012/08/06/ND_BUN_SENTENCE_PREVIEW_3_CY_t80.jp', quality undefined |
| /usr/local/lib/python2.6/site-packages/PIL/Image.py in save(self=<JpegImagePlugin.JpegImageFile image mode=RGB size=80x58>, fp='/var/www/static/scni.media.clients.ellingtoncms....os/2012/08/06/ND_BUN_SENTENCE_PREVIEW_3_CY_t80.jp', format=None, **params={'quality': 85}) |
| 1421 format = EXTENSION[ext] |
| 1422 except KeyError: |
| 1423 raise KeyError(ext) # unknown extension |
| 1424 |
| 1425 try: |
| builtin KeyError = <type 'exceptions.KeyError'>, ext = '.jp' |
<type 'exceptions.KeyError'>: '.jp'
args =
('.jp',)
message =
'.jp'