Fixes Terminating error in v15.dev #97

This commit is contained in:
DevilXD committed 2022-12-14 08:45:17 +01:00
1 parent b6bc2e11cf
commit f9b8d8e9a8
1 file changed
+2 -4
+2 -4
View File
@@ -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