PiRSquared17 / thebigpicture

Automatically exported from code.google.com/p/thebigpicture
0 stars 0 forks source link

Specifying the 'tiff' record produces a ValueError #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  jpeg = TBP.Jpeg('/123.jpg')
  make jpeg.getExifTag('Make', 'tiff')

Expected: return the value of Make
Actual: ValueError exception is thrown

Version: alpha-2

Please provide any additional information below.
The problem is on line 136 of metainfofile.py

The problem that 'tiff' is the first item in the list with an index of
zero. The previous lines find 'tiff' in the list but the statement

if (index) 

will resolve to false because index == 0. This statement should probably
change to 

if (index+1)

or

if (index >= 0)

Original issue reported on code.google.com by djense...@gmail.com on 11 May 2007 at 10:09