Skip to content

Commit 1f5adbf

Browse files
Cheticclaude
andcommitted
fix: skip disappeared files during indexing instead of halting
Closes #37 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 05b4ba1 commit 1f5adbf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/chunksilo/index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ def load_file(
628628
ctx: "FileProcessingContext | None" = None
629629
) -> List[LlamaIndexDocument]:
630630
file_path = Path(file_info.path)
631+
if not file_path.exists():
632+
logger.warning(f"Skipping disappeared file: {file_path}")
633+
return []
631634
if file_path.suffix.lower() == ".docx":
632635
if ctx:
633636
ctx.set_phase("Parsing DOCX")

0 commit comments

Comments
 (0)