Commit 6755bd49 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add a comment to explain a try/except/pass

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1619 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8f3889eb
...@@ -225,6 +225,9 @@ class NodeManager(object): ...@@ -225,6 +225,9 @@ class NodeManager(object):
try: try:
del index_dict[key] del index_dict[key]
except KeyError: except KeyError:
# a node may have not be indexed by uuid or address, eg.:
# - a master known by address but without UUID
# - a client or admin node that don't have listening address
pass pass
def __update(self, index_dict, old_key, new_key, node): def __update(self, index_dict, old_key, new_key, node):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment