Skip to content

Commit

Permalink
fix: be robust to missing ~> (should we?)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Aug 2, 2024
1 parent 5f5bffd commit 37ae162
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdfminer/ascii85.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def ascii85decode(data: bytes) -> bytes:
its original in handling the last characters.
"""
return a85decode(data, adobe=True)
try:
return a85decode(data, adobe=True)
except ValueError:
return a85decode(data)


bws_re = re.compile(rb"\s")
Expand Down

0 comments on commit 37ae162

Please sign in to comment.