mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-14 15:22:13 +03:00
Catch TypeError in _getexif file seek
This commit is contained in:
parent
38b18115cb
commit
87d00fe441
|
@ -423,7 +423,7 @@ def _getexif(self):
|
|||
# get exif extension
|
||||
try:
|
||||
file.seek(exif[0x8769])
|
||||
except KeyError:
|
||||
except (KeyError, TypeError):
|
||||
pass
|
||||
else:
|
||||
info = TiffImagePlugin.ImageFileDirectory(head)
|
||||
|
|
Loading…
Reference in New Issue
Block a user