From c5e8d12ddd49a57fa47275cb026866e1ae10acdc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 25 Feb 2023 10:16:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/PIL/AniImagePlugin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PIL/AniImagePlugin.py b/src/PIL/AniImagePlugin.py index c407824e3..091827fd4 100644 --- a/src/PIL/AniImagePlugin.py +++ b/src/PIL/AniImagePlugin.py @@ -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)