mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-22 15:24:37 +03:00
Assert fp is not None
This commit is contained in:
parent
34762ded75
commit
a922126ed7
|
@ -180,6 +180,7 @@ class ImageFile(Image.Image):
|
|||
ifds.append((ifd1, exif._info.next))
|
||||
|
||||
offset = None
|
||||
assert self.fp is not None
|
||||
for ifd, ifd_offset in ifds:
|
||||
current_offset = self.fp.tell()
|
||||
if offset is None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user