From f9b8d8e9a840a3422c9913da6ffb02d2588b52b0 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Wed, 14 Dec 2022 08:45:17 +0100 Subject: [PATCH] Fixes Terminating error in v15.dev #97 --- twitch.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/twitch.py b/twitch.py index 82d6e63..ce67188 100644 --- a/twitch.py +++ b/twitch.py @@ -1415,12 +1415,10 @@ class Twitch: for response_json in response_list: if "errors" in response_json: for error_dict in response_json["errors"]: - if ( - "message" in error_dict["errors"] - and error_dict["errors"]["message"] == "service timeout" - ): + if "message" in error_dict and error_dict["message"] == "service timeout": has_timeout = True break + else: raise MinerException(f"GQL error: {response_json['errors']}") if has_timeout: break