Skip to content

fix: bind take_load_error for the threaded renderer - #432

Merged
cau-git merged 1 commit into
mainfrom
claude/serene-proskuriakova-040af9
Oct 29, 2026
Merged

cau-git merged 1 commit into
mainfrom
claude/serene-proskuriakova-040af9

Conversation

@cau-git

@cau-git cau-git commented Oct 29, 2026

Copy link
Copy Markdown
Member

_load_error() (added in #414) calls native_parser.take_load_error(key) whenever a load fails, but only _pdf_parser and _threaded_pdf_parser bound it. A failed load through DoclingThreadedPdfParser with a render_config (e.g. a missing file) therefore raised AttributeError: '_threaded_pdf_renderer' object has no attribute 'take_load_error' instead of PdfLoadError. Seen on CI for #411 when the regression PDF was not yet in the pinned dataset.

  • Bind take_load_error on _threaded_pdf_renderer, same as the threaded parser.
  • Run the load-failure tests (password, damaged, missing file, retry) through the renderer too.

tests/test_unit_*.py: 307 passed, 2 skipped.

A failed load through _threaded_pdf_renderer raised AttributeError
instead of PdfLoadError, because _load_error() calls take_load_error
and only the two parsers bound it.

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @cau-git, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@cau-git
cau-git marked this pull request as ready for review October 29, 2026 14:57
@cau-git
cau-git merged commit 4ebbb8a into main Oct 29, 2026
47 checks passed
@cau-git
cau-git deleted the claude/serene-proskuriakova-040af9 branch October 29, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants