Skip to content

Preserve vendor OCR request errors - #105

Merged
Moskize91 merged 2 commits into
mainfrom
fix/preserve-vendor-errors
Sep 28, 2026
Merged

Moskize91 merged 2 commits into
mainfrom
fix/preserve-vendor-errors

Conversation

@Moskize91

Copy link
Copy Markdown
Owner

Changes

  • add the public VendorOCRRequestError wrapper
  • preserve transport and HTTP failures through Python exception chaining
  • keep the original response available for Unlimited OCR provider errors returned with HTTP 200
  • wrap malformed vendor responses without adding retry or error classification
  • bump the package version from 1.2.0 to 1.2.1
  • document how callers inspect the original error and response

Verification

  • poetry run python test.py (30 tests)
  • poetry run pylint --disable=import-error doc_page_extractor (10.00/10)
  • poetry build
  • git diff --check

@Moskize91
Moskize91 merged commit 44b2fc8 into main Sep 28, 2026
1 check passed
@Moskize91
Moskize91 deleted the fix/preserve-vendor-errors branch September 28, 2026 09:04
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.

1 participant