git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(no commit message)
[sfa.git]
/
sfa
/
plc
/
network.py
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