Call parent verify method (#9357)

This commit is contained in:
Andrew Murray 2025-12-31 23:47:33 +11:00 committed by GitHub
parent 0a9a47fb9b
commit 19910ed03e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -855,9 +855,7 @@ class PngImageFile(ImageFile.ImageFile):
self.png.verify()
self.png.close()
if self._exclusive_fp:
self.fp.close()
self.fp = None
super().verify()
def seek(self, frame: int) -> None:
if not self._seek_check(frame):