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

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

Closed
StyXman opened this issue Apr 11, 2020 · 1 comment
Closed

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

StyXman opened this issue Apr 11, 2020 · 1 comment
Milestone

Comments

@StyXman
Copy link

StyXman commented Apr 11, 2020

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)

@saimn saimn closed this as completed in 6784a74 Apr 14, 2020
@saimn saimn added this to the 2.1 milestone Apr 14, 2020
@saimn
Copy link
Owner

saimn commented Apr 14, 2020

Fixed, thanks for the report!

kontza pushed a commit to kontza/sigal that referenced this issue Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants