We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b33a87 commit 03b5ffbCopy full SHA for 03b5ffb
1 file changed
src/PIL/WebPImagePlugin.py
@@ -100,14 +100,8 @@ def _getexif(self):
100
return dict(self.getexif())
101
102
def seek(self, frame):
103
- if not _webp.HAVE_WEBPANIM:
104
- return super().seek(frame)
105
-
106
- # Perform some simple checks first
107
- if frame >= self._n_frames:
108
- raise EOFError("attempted to seek beyond end of sequence")
109
- if frame < 0:
110
- raise EOFError("negative frame index is not valid")
+ if not self._seek_check(frame):
+ return
111
112
# Set logical frame to requested position
113
self.__logical_frame = frame
0 commit comments