bug: fix possible empty command when getting small data points.

This commit is contained in:
b-rowan
2024-01-04 20:58:15 -07:00
parent 928c24f56f
commit 80d9d7df1d

View File

@@ -156,6 +156,8 @@ class BOSMinerGQLAPI:
) -> dict:
url = f"http://{self.ip}/graphql"
query = command
if command is None:
return {}
if command.get("query") is None:
query = {"query": self.parse_command(command)}
try: