Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying the 'tiff' record produces a ValueError #34

Open
GoogleCodeExporter opened this issue Mar 22, 2015 · 0 comments
Open

Specifying the 'tiff' record produces a ValueError #34

GoogleCodeExporter opened this issue Mar 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 11 May 2007 at 10:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant