More try statemments to work
This commit is contained in:
parent
4ab180d410
commit
b742030bd5
@ -185,6 +185,9 @@ class NodeInstance(threading.Thread):
|
|||||||
self.active_node_list.append(node_name)
|
self.active_node_list.append(node_name)
|
||||||
try:
|
try:
|
||||||
self.flushed_node_list.remove(node_name)
|
self.flushed_node_list.remove(node_name)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
self.inactive_node_list.remove(node_name)
|
self.inactive_node_list.remove(node_name)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
@ -192,6 +195,9 @@ class NodeInstance(threading.Thread):
|
|||||||
self.flushed_node_list.append(node_name)
|
self.flushed_node_list.append(node_name)
|
||||||
try:
|
try:
|
||||||
self.active_node_list.remove(node_name)
|
self.active_node_list.remove(node_name)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
self.inactive_node_list.remove(node_name)
|
self.inactive_node_list.remove(node_name)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
@ -199,6 +205,9 @@ class NodeInstance(threading.Thread):
|
|||||||
self.inactive_node_list.append(node_name)
|
self.inactive_node_list.append(node_name)
|
||||||
try:
|
try:
|
||||||
self.active_node_list.remove(node_name)
|
self.active_node_list.remove(node_name)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
self.flushed_node_list.remove(node_name)
|
self.flushed_node_list.remove(node_name)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user