bug: fix some cases where web command data can fail.
This commit is contained in:
@@ -414,13 +414,14 @@ class BaseMiner(ABC):
|
|||||||
else:
|
else:
|
||||||
args_to_send[arg_name] = api_command_data
|
args_to_send[arg_name] = api_command_data
|
||||||
if fn_args[arg_name].get("web"):
|
if fn_args[arg_name].get("web"):
|
||||||
if web_command_data.get("multicommand"):
|
if web_command_data is not None:
|
||||||
args_to_send[arg_name] = web_command_data[
|
if web_command_data.get("multicommand"):
|
||||||
fn_args[arg_name]["web"]
|
args_to_send[arg_name] = web_command_data[
|
||||||
]
|
fn_args[arg_name]["web"]
|
||||||
else:
|
]
|
||||||
if not web_command_data == {"multicommand": False}:
|
else:
|
||||||
args_to_send[arg_name] = web_command_data
|
if not web_command_data == {"multicommand": False}:
|
||||||
|
args_to_send[arg_name] = web_command_data
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user