When MARKDOWN_PREPROCESSOR fails to load raise the exception.
This commit is contained in:
parent
e13e813337
commit
b4b6c3f1ad
1 changed files with 2 additions and 1 deletions
|
|
@ -171,9 +171,10 @@ class ChunkRepository:
|
||||||
processed_markdown, name="content.md"
|
processed_markdown, name="content.md"
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(
|
logger.error(
|
||||||
f"Failed to apply MARKDOWN_PREPROCESSOR '{preprocessor_path}': {e}. Proceeding without preprocessing."
|
f"Failed to apply MARKDOWN_PREPROCESSOR '{preprocessor_path}': {e}. Proceeding without preprocessing."
|
||||||
)
|
)
|
||||||
|
raise e
|
||||||
|
|
||||||
chunk_texts = await chunker.chunk(processed_document)
|
chunk_texts = await chunker.chunk(processed_document)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue