From f8142412657e61baf08208944b19838a39479367 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 18 Dec 2012 11:26:29 -0500 Subject: [PATCH 1/1] fix potential KeyError --- sfa/planetlab/plaggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py index c07d9c82..ef1a5bb9 100644 --- a/sfa/planetlab/plaggregate.py +++ b/sfa/planetlab/plaggregate.py @@ -191,7 +191,7 @@ class PlAggregate: interface['client_id'] = "%s:%s" % (node['node_id'], if_id) rspec_node['interfaces'].append(interface) if_count+=1 - tags = [PLTag(node_tags[tag_id]) for tag_id in node['node_tag_ids']] + tags = [PLTag(node_tags[tag_id]) for tag_id in node['node_tag_ids'] if tag_id in node_tags] rspec_node['tags'] = tags return rspec_node -- 2.43.0