Fix adding of nodes with multiple matching alises

rewrite
Jan-Philipp Litza 2014-09-20 12:42:40 +02:00
parent f08aaaff4e
commit 66112061d6
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class NodeDB(dict):
if id_ == node_id: if id_ == node_id:
continue continue
if id_ in self: 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_]) raise AmbiguityError([node_id, id_])
node = self[id_] node = self[id_]
node_id = id_ node_id = id_