Skip to content

Commit

Permalink
Assert fp is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 12, 2025
1 parent 34762de commit a922126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PIL/ImageFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def get_child_images(self) -> list[ImageFile]:
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:
Expand Down

0 comments on commit a922126

Please sign in to comment.