From e267bbbead99d8e9e76c3716de27a2be9a80113e Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 14 Aug 2019 01:40:03 -0500 Subject: [PATCH] catch value error on insert queue removal --- onionr/communicatorutils/daemonqueuehandler.py | 5 ++++- onionr/static-data/www/chat/index.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/onionr/communicatorutils/daemonqueuehandler.py b/onionr/communicatorutils/daemonqueuehandler.py index ea29435e..73944271 100755 --- a/onionr/communicatorutils/daemonqueuehandler.py +++ b/onionr/communicatorutils/daemonqueuehandler.py @@ -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]) diff --git a/onionr/static-data/www/chat/index.html b/onionr/static-data/www/chat/index.html index f10a0456..ccc31c25 100755 --- a/onionr/static-data/www/chat/index.html +++ b/onionr/static-data/www/chat/index.html @@ -85,7 +85,7 @@
-
yeet
+