git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
280892e
)
(no commit message)
author
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:32:41 +0000
(16:32 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 16:32:41 +0000
(16:32 +0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
16a4467
..
d5ef406
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-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