mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 12:44:46 +03:00
Styling fix.
This commit is contained in:
parent
79d1068ca6
commit
4d5730601a
|
@ -240,8 +240,9 @@ class ImageFile(Image.Image):
|
||||||
if LOAD_TRUNCATED_IMAGES:
|
if LOAD_TRUNCATED_IMAGES:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise OSError(None, "image file is truncated",
|
raise OSError(
|
||||||
self.filename) from e
|
None, "image file is truncated", self.filename
|
||||||
|
) from e
|
||||||
|
|
||||||
if not s: # truncated jpeg
|
if not s: # truncated jpeg
|
||||||
if LOAD_TRUNCATED_IMAGES:
|
if LOAD_TRUNCATED_IMAGES:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user