From 1fca8b4bca4496a8b6b4247f60e53bc5a4c96a75 Mon Sep 17 00:00:00 2001 From: IAmTomahawkx Date: Sat, 22 Oct 2022 21:55:19 -0700 Subject: [PATCH] run black --- twitchio/client.py | 2 +- twitchio/websocket.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twitchio/client.py b/twitchio/client.py index e16a4f81..24edb00a 100644 --- a/twitchio/client.py +++ b/twitchio/client.py @@ -156,7 +156,7 @@ def run(self): """ try: task = self.loop.create_task(self.connect()) - self.loop.run_until_complete(task) # this'll raise if the connect fails + self.loop.run_until_complete(task) # this'll raise if the connect fails self.loop.run_forever() except KeyboardInterrupt: pass diff --git a/twitchio/websocket.py b/twitchio/websocket.py index 8a545798..a45863be 100644 --- a/twitchio/websocket.py +++ b/twitchio/websocket.py @@ -126,7 +126,7 @@ async def _connect(self): data = await self._client._http.validate(token=self._token) except AuthenticationError: await self._client._http.session.close() - self._client._closing.set() # clean up and error out (this is called to avoid calling Client.close in start() + self._client._closing.set() # clean up and error out (this is called to avoid calling Client.close in start() raise self.nick = data["login"] self.user_id = int(data["user_id"])