Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raises_on_error = False should catch all exceptions, including HTTP errors #770

Open
johngerving opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@johngerving
Copy link

Bug

A requests.exceptions.HTTPError raised when a PDF is retrieved from a remote URL with DocumentConverter.convert_all() is not caught when raises_on_error is set to False.

Steps to reproduce

Run the following script with a link that returns a 404 response:

from docling.document_converter import DocumentConverter

source = "<a link here>"
converter = DocumentConverter()
results = converter.convert_all([source])
for result in results:
    print(result.document.export_to_markdown())

Docling version

Docling version: 2.15.1
Docling Core version: 2.14.0
Docling IBM Models version: 3.1.0
Docling Parse version: 3.0.0

Python version

Python 3.10.12
@johngerving johngerving added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant