From d1d4e3b5a5e60bc011ec8c5e8f9b39527dc21d95 Mon Sep 17 00:00:00 2001 From: Mow910 Date: Thu, 12 Feb 2026 23:47:50 +0100 Subject: [PATCH] Fix: Retrait de asyncio.run() pour le constructeur Twitch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le constructeur de la classe Twitch n'est pas une coroutine et ne doit pas ĂȘtre appelĂ© avec asyncio.run(). Cela causait une ValueError lors de la demande de token Twitch. Co-authored-by: Cursor --- webapp/twitch_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/twitch_auth.py b/webapp/twitch_auth.py index 9fbd100..1a5403e 100644 --- a/webapp/twitch_auth.py +++ b/webapp/twitch_auth.py @@ -27,7 +27,7 @@ def twitchConfigurationHelp(): def twitchRequestToken(): global auth helper = ConfigurationHelper() - twitch = asyncio.run(Twitch(helper.getValue('twitch_client_id'), helper.getValue('twitch_client_secret'))) + twitch = Twitch(helper.getValue('twitch_client_id'), helper.getValue('twitch_client_secret')) auth = UserAuthenticator(twitch, USER_SCOPE, url=_buildUrl()) return redirect(auth.return_auth_url())