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])

View File

@ -85,7 +85,7 @@
<div class="column has-background-grey-dark has-text-light is-one-fifths content convoListContainer">
<ul class='conversationList'></ul>
</div>
<div class="column chatBox has-text-light has-background-dark is-four-fifths">yeet</div>
<div class="column chatBox has-text-light has-background-dark is-four-fifths"></div>
</div>
</body>