1 parent 05b4ba1 commit 1f5adbfCopy full SHA for 1f5adbf
1 file changed
src/chunksilo/index.py
@@ -628,6 +628,9 @@ def load_file(
628
ctx: "FileProcessingContext | None" = None
629
) -> List[LlamaIndexDocument]:
630
file_path = Path(file_info.path)
631
+ if not file_path.exists():
632
+ logger.warning(f"Skipping disappeared file: {file_path}")
633
+ return []
634
if file_path.suffix.lower() == ".docx":
635
if ctx:
636
ctx.set_phase("Parsing DOCX")
0 commit comments