mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Propagage ValueError out, rather than swallowing
This commit is contained in:
parent
38f43c1e5f
commit
40a94d4a42
|
@ -193,10 +193,7 @@ class ImageFile(Image.Image):
|
|||
decoder = Image._getdecoder(self.mode, decoder_name,
|
||||
args, self.decoderconfig)
|
||||
seek(offset)
|
||||
try:
|
||||
decoder.setimage(self.im, extents)
|
||||
except ValueError:
|
||||
continue
|
||||
decoder.setimage(self.im, extents)
|
||||
if decoder.pulls_fd:
|
||||
decoder.setfd(self.fp)
|
||||
status, err_code = decoder.decode(b"")
|
||||
|
|
Loading…
Reference in New Issue
Block a user