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:
parent
fdb0c8292a
commit
03d3e13850
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue