Fixes Terminating error in v15.dev #97
This commit is contained in:
1 parent
b6bc2e11cf
commit
f9b8d8e9a8
1 file changed
+2
-4
@@ -1415,12 +1415,10 @@ class Twitch:
|
|||||||
for response_json in response_list:
|
for response_json in response_list:
|
||||||
if "errors" in response_json:
|
if "errors" in response_json:
|
||||||
for error_dict in response_json["errors"]:
|
for error_dict in response_json["errors"]:
|
||||||
if (
|
if "message" in error_dict and error_dict["message"] == "service timeout":
|
||||||
"message" in error_dict["errors"]
|
|
||||||
and error_dict["errors"]["message"] == "service timeout"
|
|
||||||
):
|
|
||||||
has_timeout = True
|
has_timeout = True
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
raise MinerException(f"GQL error: {response_json['errors']}")
|
raise MinerException(f"GQL error: {response_json['errors']}")
|
||||||
if has_timeout:
|
if has_timeout:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user