Skip to content

Commit 7e2576e

Browse files
radarherehugovk
andauthored
Use "raise"
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 3c79f31 commit 7e2576e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/PdfParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ def __init__(
404404
if self.buf:
405405
try:
406406
self.read_pdf_info()
407-
except PdfFormatError as e:
407+
except PdfFormatError:
408408
self.close()
409-
raise e
409+
raise
410410
else:
411411
self.file_size_total = self.file_size_this = 0
412412
self.root = PdfDict()

0 commit comments

Comments
 (0)