| <type 'exceptions.KeyError'> | Python 2.5.1: /usr/bin/python2.5 Fri Nov 20 19:41:43 2009 |
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/static/media.troymessenger.com/media/mogrify.py in |
| 146 </html> |
| 147 """ |
| 148 |
| 149 if __name__ == '__main__': |
| 150 mogrify() |
| mogrify = <function mogrify at 0x7ebb90> |
| /home/static/media.troymessenger.com/media/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 0x8849e0>, m.save = <bound method Mogrifier.save of <mogrifier.Mogrifier instance at 0x8849e0>>, requested_path = '/home/static/media.troymessenger.com/media/img/photos/2009/11/04/11-5_wbb_r40x40' |
| /home/code/mogrify/mogrifier.py in save(self=<mogrifier.Mogrifier instance at 0x8849e0>, filename='/home/static/media.troymessenger.com/media/img/photos/2009/11/04/11-5_wbb_r40x40') |
| 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 0x8849e0>, self.im = <Image._ImageCrop instance at 0x8edfc8>, self.im.save = <bound method _ImageCrop.save of <Image._ImageCrop instance at 0x8edfc8>>, filename = '/home/static/media.troymessenger.com/media/img/photos/2009/11/04/11-5_wbb_r40x40', quality undefined |
| /usr/lib/python2.5/site-packages/PIL/Image.py in save(self=<Image._ImageCrop instance at 0x8edfc8>, fp='/home/static/media.troymessenger.com/media/img/photos/2009/11/04/11-5_wbb_r40x40', format=None, **params={'quality': 85}) |
| 1387 format = EXTENSION[ext] |
| 1388 except KeyError: |
| 1389 raise KeyError(ext) # unknown extension |
| 1390 |
| 1391 try: |
| builtin KeyError = <type 'exceptions.KeyError'>, ext = '' |
<type 'exceptions.KeyError'>: ''