fixed a bug in BMMiner parsing where a comma was missing causing json errors
This commit is contained in:
@@ -146,7 +146,7 @@ class BaseMinerAPI:
|
|||||||
# no null byte
|
# no null byte
|
||||||
str_data = data.decode('utf-8')
|
str_data = data.decode('utf-8')
|
||||||
# fix an error with a bmminer return not having a specific comma that breaks json.loads()
|
# 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
|
# parse the json
|
||||||
parsed_data = json.loads(str_data)
|
parsed_data = json.loads(str_data)
|
||||||
# handle bad json
|
# handle bad json
|
||||||
|
|||||||
Reference in New Issue
Block a user