From 47f20f2c63eb0668168aed769302b4caf5e50c04 Mon Sep 17 00:00:00 2001 From: Pieter Marsman Date: Tue, 9 Jul 2024 06:51:56 +0200 Subject: [PATCH] Fix formatting bytes in error message --- pdfminer/pdfdocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfminer/pdfdocument.py b/pdfminer/pdfdocument.py index 6aa2906a..84713516 100644 --- a/pdfminer/pdfdocument.py +++ b/pdfminer/pdfdocument.py @@ -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)