You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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())
Bug
A
requests.exceptions.HTTPError
raised when a PDF is retrieved from a remote URL withDocumentConverter.convert_all()
is not caught whenraises_on_error
is set toFalse
.Steps to reproduce
Run the following script with a link that returns a 404 response:
Docling version
Python version
The text was updated successfully, but these errors were encountered: