4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 15:58:10 +00:00

Don't lose edges for a week

This commit is contained in:
Vanhala Antti
2014-06-05 00:27:06 +03:00
parent faa9bbbc92
commit 63ac6ffc06
2 changed files with 7 additions and 3 deletions

View File

@@ -70,8 +70,10 @@ class NodeDB:
edges = []
for e in db_edges:
edges.append(Edge(nodes[e['a']], nodes[e['b']]))
try:
edges.append(Edge(nodes[e['a']], nodes[e['b']]))
except KeyError:
pass
return edges
def get_graph(self, time_limit):