Skip to content

Commit

Permalink
improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Apr 5, 2024
1 parent 8f3bcc1 commit 6e30c6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pypdf/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def _read_standard_xref_table(self, stream: StreamType) -> None:
size = cast(int, read_object(stream, self))
if not isinstance(size, int):
logger_warning(
"Invalid/Truncated xref table. Rebuild xref table",
"Invalid/Truncated xref table. Rebuilding it.",
__name__,
)
self._rebuild_xref_table(stream)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,4 +1515,4 @@ def test_truncated_xref(caplog):
url = "https://github.com/py-pdf/pypdf/files/14843553/002-trivial-libre-office-writer-broken.pdf"
name = "iss2575.pdf"
PdfReader(BytesIO(get_data_from_url(url, name=name)))
assert "Invalid/Truncated xref table. Rebuild xref table" in caplog.text
assert "Invalid/Truncated xref table. Rebuilding it." in caplog.text

0 comments on commit 6e30c6f

Please sign in to comment.