When MARKDOWN_PREPROCESSOR fails to load raise the exception.

This commit is contained in:
Yiorgis Gozadinos 2025-09-16 12:32:09 +03:00
parent e13e813337
commit b4b6c3f1ad
No known key found for this signature in database

View file

@ -171,9 +171,10 @@ class ChunkRepository:
processed_markdown, name="content.md"
)
except Exception as e:
logger.warning(
logger.error(
f"Failed to apply MARKDOWN_PREPROCESSOR '{preprocessor_path}': {e}. Proceeding without preprocessing."
)
raise e
chunk_texts = await chunker.chunk(processed_document)