mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-01 07:54: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
|
# get exif extension
|
||||||
try:
|
try:
|
||||||
file.seek(exif[0x8769])
|
file.seek(exif[0x8769])
|
||||||
except KeyError:
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
info = TiffImagePlugin.ImageFileDirectory(head)
|
info = TiffImagePlugin.ImageFileDirectory(head)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user