fix linting
This commit is contained in:
parent
5707aab6bd
commit
78a4edeff5
1 changed files with 3 additions and 1 deletions
|
|
@ -2386,7 +2386,9 @@ class LightRAG:
|
||||||
# 1. Check if all source entities exist
|
# 1. Check if all source entities exist
|
||||||
source_entities_data = {}
|
source_entities_data = {}
|
||||||
for entity_name in source_entities:
|
for entity_name in source_entities:
|
||||||
node_exists = await self.chunk_entity_relation_graph.has_node(entity_name)
|
node_exists = await self.chunk_entity_relation_graph.has_node(
|
||||||
|
entity_name
|
||||||
|
)
|
||||||
if not node_exists:
|
if not node_exists:
|
||||||
raise ValueError(f"Source entity '{entity_name}' does not exist")
|
raise ValueError(f"Source entity '{entity_name}' does not exist")
|
||||||
node_data = await self.chunk_entity_relation_graph.get_node(entity_name)
|
node_data = await self.chunk_entity_relation_graph.get_node(entity_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue