Skip to content

Commit

Permalink
m.images: don't display exif tags if there is no exif present.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored and mosra committed Dec 21, 2017
1 parent e3136c3 commit db5d322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelican-plugins/m/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run(self):
im = PIL.Image.open(absuri)

# Get EXIF info, if it's there
if hasattr(im, '_getexif'):
if hasattr(im, '_getexif') and im._getexif() is not None:
exif = {
PIL.ExifTags.TAGS[k]: v
for k, v in im._getexif().items()
Expand Down

0 comments on commit db5d322

Please sign in to comment.