Fix adding of nodes with multiple matching alises

This commit is contained in:
Jan-Philipp Litza 2014-09-20 12:42:40 +02:00
parent f08aaaff4e
commit 66112061d6

View file

@ -42,7 +42,7 @@ class NodeDB(dict):
if id_ == node_id:
continue
if id_ in self:
if node is not None:
if node is not None and node is not self[id_]:
raise AmbiguityError([node_id, id_])
node = self[id_]
node_id = id_