aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2018-08-09 14:15:44 +0200
committerRapptz <[email protected]>2018-11-24 22:17:58 -0500
commit51d626eabef3b8310478c6a88c88b2a3cc290bde (patch)
tree40a38eba637723fa59d38bb9c7c1d8782abf76f4 /discord/gateway.py
parent[lint] Replace equality comparisons to singletons (diff)
downloaddiscord.py-51d626eabef3b8310478c6a88c88b2a3cc290bde.tar.xz
discord.py-51d626eabef3b8310478c6a88c88b2a3cc290bde.zip
[lint] Remove redundant paranthesis
Remove redundant parenthisis around await expressions. Left over from f25091ef.
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index caca7e09..7e297d4f 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -229,7 +229,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
except websockets.exceptions.ConnectionClosed:
# ws got closed so let's just do a regular IDENTIFY connect.
log.info('RESUME failed (the websocket decided to close) for Shard ID %s. Retrying.', shard_id)
- return (await cls.from_client(client, shard_id=shard_id))
+ return await cls.from_client(client, shard_id=shard_id)
else:
return ws