fix: Handle [] node_name case
This commit is contained in:
parent
21f688385b
commit
e6ee182d78
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class CogneeGraph(CogneeAbstractGraph):
|
|||
start_time = time.time()
|
||||
|
||||
# Determine projection strategy
|
||||
if node_type is not None and node_name is not None:
|
||||
if node_type is not None and node_name not in [None, []]:
|
||||
nodes_data, edges_data = await adapter.get_nodeset_subgraph(
|
||||
node_type=node_type, node_name=node_name
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue