Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmTomahawkx committed Oct 23, 2022
1 parent 2623d39 commit 1fca8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twitchio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion twitchio/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 1fca8b4

Please sign in to comment.