bug: fix some cases where web command data can fail.

This commit is contained in:
UpstreamData
2023-06-23 11:23:20 -06:00
parent 0bd679f259
commit 4530d086da

View File

@@ -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