| KeyError | Python 2.4.4: /usr/bin/python2.4 Tue Feb 9 14:33:21 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.lawrence.com/mogrify.py |
| 146 </html> |
| 147 """ |
| 148 |
| 149 if __name__ == '__main__': |
| 150 mogrify() |
| mogrify = <function mogrify> |
| /home/media/media.lawrence.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>, m.save = <bound method Mogrifier.save of <mogrifier.Mogrifier instance>>, requested_path = '/home/media/media.lawrence.com/img/photos/2009/01/10/missouri_maclin_bw_r175x200' |
| /home/code/worldonline/utilities/mogrify/mogrifier.py in save(self=<mogrifier.Mogrifier instance>, filename='/home/media/media.lawrence.com/img/photos/2009/01/10/missouri_maclin_bw_r175x200') |
| 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 = <Image._ImageCrop instance>, self.im.save = <bound method _ImageCrop.save of <Image._ImageCrop instance>>, filename = '/home/media/media.lawrence.com/img/photos/2009/01/10/missouri_maclin_bw_r175x200', quality undefined |
| /usr/lib/python2.4/site-packages/PIL/Image.py in save(self=<Image._ImageCrop instance>, fp='/home/media/media.lawrence.com/img/photos/2009/01/10/missouri_maclin_bw_r175x200', format=None, **params={'quality': 85}) |
| 1287 format = EXTENSION[ext] |
| 1288 except KeyError: |
| 1289 raise KeyError(ext) # unknown extension |
| 1290 |
| 1291 try: |
| builtin KeyError = <class exceptions.KeyError>, ext = '' |
KeyError: ''
args =
('',)