Skip to content

Commit 5f99a28

Browse files
committed
Fixed bug in graph creation from cloudcraft
1 parent bcf3434 commit 5f99a28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎modulestf/cloudcraft/graph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def populate_graph(data): # noqa: C901
6262
})
6363

6464
for group_node in group_nodes:
65+
# some items (like "text") may belong to groups, but are not in "nodes"
66+
if group_node not in G.nodes:
67+
continue
68+
6569
if group_type == "asg":
6670
G.nodes[group_node]["data"]["asg_id"] = group_id
6771
elif group_type == "sg":

0 commit comments

Comments
 (0)