Skip to content

Commit 4fcef0d

Browse files
committed
Removed re-raising of exception
1 parent 9e04416 commit 4fcef0d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/PIL/PpmImagePlugin.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,7 @@ def _decode_blocks(self, channels=1, depth=8):
250250
raise ValueError(
251251
f"Token too long found in data: {token[:max_len + 1]}"
252252
)
253-
try:
254-
token = int(token)
255-
except ValueError:
256-
raise ValueError(
257-
f"Non-decimal-ASCII found in data: {token}"
258-
) from None
253+
token = int(token)
259254
tokens_read += 1
260255
if token > maxval:
261256
raise ValueError(f"Channel value too large for this mode: {token}")

0 commit comments

Comments
 (0)