More try statemments to work

This commit is contained in:
Joshua Boniface 2018-06-04 17:08:00 -04:00
parent 4ab180d410
commit b742030bd5
1 changed files with 9 additions and 0 deletions

View File

@ -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