Skip to content

Commit

Permalink
Fix formatting bytes in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pietermarsman committed Jul 9, 2024
1 parent 2cb3c91 commit 47f20f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfminer/pdfdocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def find_xref(self, parser: PDFParser) -> int:
log.debug("xref found: pos=%r", prev)

if not prev.isdigit():
raise PDFNoValidXRef(f"Invalid xref position: {prev}")
raise PDFNoValidXRef(f"Invalid xref position: {prev!r}")

start = int(prev)

Expand Down

0 comments on commit 47f20f2

Please sign in to comment.