Update cognee/tasks/repo_processor/get_repo_file_dependencies.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Fardeen Malik 2025-08-18 22:05:39 +05:30 committed by GitHub
parent fdb0c8292a
commit 03d3e13850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,7 @@ async def get_repo_file_dependencies(
else:
# Placeholder: create a minimal CodeFile for other languages
async def make_codefile_stub(file_path=file_path, lang=lang):
async with aiofiles.open(file_path, "r", encoding="utf-8") as f:
async with aiofiles.open(file_path, "r", encoding="utf-8", errors="replace") as f:
source = await f.read()
return CodeFile(
id=uuid5(NAMESPACE_OID, file_path),