docling-project / docling-project/docling

raises_on_error = False should catch all exceptions, including HTTP errors

Open
#770 2 comments 0 reactions 0 assignees View on GitHub
bug error-handling
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### 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 = ""
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.