[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-02-25 10:16:19 +00:00
parent 23f55505c8
commit c5e8d12ddd

View File

@ -426,7 +426,6 @@ class AniImageFile(ImageFile.ImageFile):
self.mode = im.mode
def seek(self, frame):
if frame > self.info["frames"] - 1 or frame < 0:
msg = "Frame index out of animation bounds"
raise EOFError(msg)