fixed a bug in BMMiner parsing where a comma was missing causing json errors

This commit is contained in:
UpstreamData
2021-12-08 17:00:56 -07:00
parent 407ded8dd0
commit 3cd42ba1f5

View File

@@ -146,7 +146,7 @@ class BaseMinerAPI:
# no null byte
str_data = data.decode('utf-8')
# fix an error with a bmminer return not having a specific comma that breaks json.loads()
str_data.replace("}{", "},{")
str_data = str_data.replace("}{", "},{")
# parse the json
parsed_data = json.loads(str_data)
# handle bad json