| <type 'exceptions.KeyError'> | Python 2.6.2: /usr/bin/python Fri Sep 3 13:11:12 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/media/media.lansingcurrent.com/mogrify.py in |
| 146 </html> |
| 147 """ |
| 148 |
| 149 if __name__ == '__main__': |
| 150 mogrify() |
| mogrify = <function mogrify at 0x1b90cf8> |
| /home/media/media.lansingcurrent.com/mogrify.py in mogrify() |
| 108 m = mogrifier.Mogrifier(original_file) |
| 109 m.apply_action_tuples(action_tuples) |
| 110 m.save(requested_path) |
| 111 |
| 112 print "Location: /%s" % request_uri |
| m = <mogrifier.Mogrifier instance at 0x1bf3bd8>, m.save = <bound method Mogrifier.save of <mogrifier.Mogrifier instance at 0x1bf3bd8>>, requested_path = '/home/media/media.lansingcurrent.com/img/croppedphotos/2010/02/03/2-4_vfw_t640.jpgCP' |
| /home/deploy/worldonline/git/utilities/mogrify/mogrifier.py in save(self=<mogrifier.Mogrifier instance at 0x1bf3bd8>, filename='/home/media/media.lansingcurrent.com/img/croppedphotos/2010/02/03/2-4_vfw_t640.jpgCP') |
| 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 at 0x1bf3bd8>, self.im = <JpegImagePlugin.JpegImageFile instance at 0x1c203f8>, self.im.save = <bound method JpegImageFile.save of <JpegImagePlugin.JpegImageFile instance at 0x1c203f8>>, filename = '/home/media/media.lansingcurrent.com/img/croppedphotos/2010/02/03/2-4_vfw_t640.jpgCP', quality undefined |
| /usr/lib/python2.6/dist-packages/PIL/Image.py in save(self=<JpegImagePlugin.JpegImageFile instance at 0x1c203f8>, fp='/home/media/media.lansingcurrent.com/img/croppedphotos/2010/02/03/2-4_vfw_t640.jpgCP', format=None, **params={'quality': 85}) |
| 1388 format = EXTENSION[ext] |
| 1389 except KeyError: |
| 1390 raise KeyError(ext) # unknown extension |
| 1391 |
| 1392 try: |
| builtin KeyError = <type 'exceptions.KeyError'>, ext = '.jpgcp' |
<type 'exceptions.KeyError'>: '.jpgcp'
args =
('.jpgcp',)
message =
'.jpgcp'