catch value error on insert queue removal
This commit is contained in:
parent
e86f154522
commit
e267bbbead
2 changed files with 5 additions and 2 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue