gzdaniel commited on
Commit
89702a2
·
1 Parent(s): 99c8d80

Fix node merge error

Browse files
Files changed (1) hide show
  1. lightrag/operate.py +1 -1
lightrag/operate.py CHANGED
@@ -256,7 +256,7 @@ async def _merge_nodes_then_upsert(
256
  already_file_paths = []
257
 
258
  already_node = await knowledge_graph_inst.get_node(entity_name)
259
- if already_node is not None:
260
  already_entity_types.append(already_node["entity_type"])
261
  already_source_ids.extend(
262
  split_string_by_multi_markers(already_node["source_id"], [GRAPH_FIELD_SEP])
 
256
  already_file_paths = []
257
 
258
  already_node = await knowledge_graph_inst.get_node(entity_name)
259
+ if already_node:
260
  already_entity_types.append(already_node["entity_type"])
261
  already_source_ids.extend(
262
  split_string_by_multi_markers(already_node["source_id"], [GRAPH_FIELD_SEP])