Skip to content

Commit 3426052

Browse files
committed
Removed re-raising of exception
1 parent cb4e267 commit 3426052

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/PIL/PpmImagePlugin.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,7 @@ def _open(self):
109109
self.mode = rawmode = mode
110110

111111
for ix in range(3):
112-
token = self._read_token()
113-
try: # check token sanity
114-
token = int(token)
115-
except ValueError:
116-
raise ValueError(
117-
f"Non-decimal-ASCII found in header: {token}"
118-
) from None
112+
token = int(self._read_token())
119113
if ix == 0: # token is the x size
120114
xsize = token
121115
elif ix == 1: # token is the y size

0 commit comments

Comments
 (0)