parent
b3a8c864b9
commit
ff944ade69
@ -125,7 +125,7 @@ class NiceHashPublicClient:
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
err_messages = [str(response.status_code), response.reason]
|
err_messages = [str(response.status_code), response.reason_phrase]
|
||||||
if response.content:
|
if response.content:
|
||||||
err_messages.append(str(response.content))
|
err_messages.append(str(response.content))
|
||||||
raise Exception(": ".join(err_messages))
|
raise Exception(": ".join(err_messages))
|
||||||
@ -190,7 +190,7 @@ class NiceHashPrivateClient:
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
err_messages = [str(response.status_code), response.reason]
|
err_messages = [str(response.status_code), response.reason_phrase]
|
||||||
if response.content:
|
if response.content:
|
||||||
err_messages.append(str(response.content))
|
err_messages.append(str(response.content))
|
||||||
raise Exception(": ".join(err_messages))
|
raise Exception(": ".join(err_messages))
|
||||||
|
Loading…
Reference in New Issue
Block a user