Extend the fix to the other exif seek

This commit is contained in:
wiredfool 2015-09-10 04:19:25 -07:00
parent 3a25b1cd9b
commit c614846fb7

View File

@ -433,7 +433,7 @@ def _getexif(self):
# get gpsinfo extension # get gpsinfo extension
try: try:
file.seek(exif[0x8825]) file.seek(exif[0x8825])
except KeyError: except (KeyError, TypeError):
pass pass
else: else:
info = TiffImagePlugin.ImageFileDirectory(head) info = TiffImagePlugin.ImageFileDirectory(head)