fixing issue #2

This commit is contained in:
Nick Hilton 2018-05-19 13:36:07 -07:00
parent d2aef69d01
commit a7458e3e20
1 changed files with 6 additions and 1 deletions

View File

@ -128,7 +128,12 @@ class Photo:
with open(f, 'rb') as fd: with open(f, 'rb') as fd:
tags = exifread.process_file(fd) tags = exifread.process_file(fd)
r = str(tags['Image Orientation']) r = 'Horizontal (normal)'
try:
r = str(tags['Image Orientation'])
except:
pass
# rotate as necessary # rotate as necessary