Skip to content

AttributeError: 'int' object has no attribute 'strip' #386

Description

@StyXman

For some reason PIL.ExifTags is reading my LensModel as an int, so the strip() call fails here:

INFO: Wrong type <class 'int'> for LensModel:1
Traceback (most recent call last):
[...]
  File "/home/mdione/src/projects/nikola-gallery/lib/python3.8/site-packages/sigal/image.py", line 293, in get_exif_tags
    simple[tag] = data[tag].strip()
AttributeError: 'int' object has no attribute 'strip'

(I added a log line to see the type, tag and value; and removed the rest of the stack trace)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions