Letractively / pytof

Automatically exported from code.google.com/p/pytof
Other
0 stars 1 forks source link

Crash while reading exif_data, should be handled correctly. #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should check we handle this crash: (the picture was attached).

/home/bsergean/Pictures/.public_html/photos.old/2003-02-01 Ski en Val
Thorens/Carlos/Photos/VA9782~1.JPG:
Traceback (most recent call last):
  File "/home/bsergean/src/pytof/trunk/pytof/exif.py", line 1177, in <module>
    data=process_file(file)
  File "/home/bsergean/src/pytof/trunk/pytof/exif.py", line 1111, in
process_file
    hdr.dump_IFD(i, IFD_name)
  File "/home/bsergean/src/pytof/trunk/pytof/exif.py", line 886, in dump_IFD
    printable=tag_entry[1](values)
  File "/home/bsergean/src/pytof/trunk/pytof/exif.py", line 234, in <lambda>
    0x9286: ('UserComment', lambda x: ''.join(map(chr, x))),
AttributeError: Ratio instance has no attribute '__int__'

Original issue reported on code.google.com by bserg...@gmail.com on 4 Jun 2007 at 8:10

Attachments: