Files
fil/docs/snippets/python/api/error_handling.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

12 lines
274 B
Markdown

```python title="Python"
from kreuzberg import extract_file_sync, ExtractionConfig, KreuzbergError
config = ExtractionConfig()
try:
result = extract_file_sync("missing.pdf", config=config)
except KreuzbergError as e:
print(f"Extraction failed: {e}")
raise
```