mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-03 22:06:18 +03:00
Suppress exception context
This commit is contained in:
parent
002e0bd697
commit
73fed77c0c
|
@ -115,7 +115,9 @@ class PpmImageFile(ImageFile.ImageFile):
|
||||||
try: # check token sanity
|
try: # check token sanity
|
||||||
token = int(token)
|
token = int(token)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError(f"Non-decimal-ASCII found in header: {token}")
|
raise ValueError(
|
||||||
|
f"Non-decimal-ASCII found in header: {token}"
|
||||||
|
) from None
|
||||||
if ix == 0: # token is the x size
|
if ix == 0: # token is the x size
|
||||||
xsize = token
|
xsize = token
|
||||||
elif ix == 1: # token is the y size
|
elif ix == 1: # token is the y size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user