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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user