updated btminer API to use cryptography instead of pycryptodome because it's painful to set up, and updated requirements.txt

This commit is contained in:
UpstreamData
2022-01-03 16:18:57 -07:00
parent d974be5329
commit cf3aefc201
3 changed files with 13 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ class BaseMinerAPI:
data = None
try:
data = await self.send_command(command)
except APIError as e:
except APIError:
try:
data = {}
# S19 handler, try again
@@ -70,8 +70,6 @@ class BaseMinerAPI:
if data:
return data
async def send_command(self, command: str, parameters: str or int or bool = None) -> dict:
"""Send an API command to the miner and return the result."""
try: