From de71d541438f7dfd14443c710a3804474159c0a1 Mon Sep 17 00:00:00 2001 From: smile-luobin Date: Sat, 24 Dec 2016 11:54:01 +0800 Subject: [PATCH] Fix deleting child_sid from nodes_dict one more time Change-Id: If8bd0fffbd03bc049d693ce9eae09ae7088c7253 --- karbor_dashboard/checkpoints/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karbor_dashboard/checkpoints/utils.py b/karbor_dashboard/checkpoints/utils.py index 0060905..49527bf 100644 --- a/karbor_dashboard/checkpoints/utils.py +++ b/karbor_dashboard/checkpoints/utils.py @@ -77,7 +77,7 @@ def unpack_graph(packed_graph): graph_nodes_dict[child_sid] = GraphNode( nodes_dict[child_sid], ()) children.append(graph_nodes_dict[child_sid]) - del(nodes_dict[child_sid]) + nodes_dict.pop(child_sid, None) graph_nodes_dict[parent_sid] = GraphNode(nodes_dict[parent_sid], tuple(children))