Skip to content

Commit

Permalink
Merge 22d3e6a into bdf56fa
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalon committed Feb 23, 2016
2 parents bdf56fa + 22d3e6a commit 51b7381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/SpiderImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def tell(self):

def seek(self, frame):
if self.istack == 0:
return
raise EOFError("attempt to seek in a non-stack file")
if frame >= self._nimages:
raise EOFError("attempt to seek past end of file")
self.stkoffset = self.hdrlen + frame * (self.hdrlen + self.imgbytes)
Expand Down

0 comments on commit 51b7381

Please sign in to comment.