From 4f4d990544cd2b3475667764febc340de9dc78fe Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Fri, 3 Nov 2023 15:57:39 +0100 Subject: [PATCH] Getting response is a method and not an attribute --- iSponsorBlockTV/api_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iSponsorBlockTV/api_helpers.py b/iSponsorBlockTV/api_helpers.py index afa4096..373b186 100644 --- a/iSponsorBlockTV/api_helpers.py +++ b/iSponsorBlockTV/api_helpers.py @@ -115,7 +115,7 @@ class ApiHelper: async with self.web_session.get(url, headers=headers, params=params) as response: response_json = await response.json() if(response.status != 200): - print(f"Error getting segments for video {vid_id}, hashed as {vid_id_hashed}. Code: {response.status} - {response.text}") + print(f"Error getting segments for video {vid_id}, hashed as {vid_id_hashed}. Code: {response.status} - {response.text()}") return ([], True) for i in response_json: if str(i["videoID"]) == str(vid_id):