bug: fix possible empty command when getting small data points.
This commit is contained in:
@@ -156,6 +156,8 @@ class BOSMinerGQLAPI:
|
|||||||
) -> dict:
|
) -> dict:
|
||||||
url = f"http://{self.ip}/graphql"
|
url = f"http://{self.ip}/graphql"
|
||||||
query = command
|
query = command
|
||||||
|
if command is None:
|
||||||
|
return {}
|
||||||
if command.get("query") is None:
|
if command.get("query") is None:
|
||||||
query = {"query": self.parse_command(command)}
|
query = {"query": self.parse_command(command)}
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user