Fix: Retrait de asyncio.run() pour le constructeur Twitch

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 <cursoragent@cursor.com>
This commit is contained in:
2026-02-12 23:47:50 +01:00
co-authored by Cursor
parent 5aa52c8137
commit d1d4e3b5a5
+1 -1
View File
@@ -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())