catch value error on insert queue removal

This commit is contained in:
Kevin Froman 2019-08-14 01:40:03 -05:00
parent e86f154522
commit e267bbbead
2 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,10 @@ def handle_daemon_commands(comm_inst):
if cmd[0] == 'shutdown':
comm_inst.shutdown = True
elif cmd[0] == 'remove_from_insert_list':
comm_inst.generating_blocks.remove(cmd[1])
try:
comm_inst.generating_blocks.remove(cmd[1])
except ValueError:
pass
elif cmd[0] == 'announceNode':
if len(comm_inst.onlinePeers) > 0:
comm_inst.announce(cmd[1])