(no commit message)
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:32:41 +0000 (16:32 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:32:41 +0000 (16:32 +0000)
sfa/plc/network.py

index 16a4467..d5ef406 100644 (file)
@@ -144,7 +144,8 @@ class Slice:
     def get_nodes(self):
         n = []
         for id in self.node_ids:
-            n.append(self.network.nodes[id])
+            if id in self.network.nodes:
+                n.append(self.network.nodes[id])
         return n
   
     # Add a new slice tag