aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.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/shard.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/shard.py')
-rw-r--r--discord/shard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/shard.py b/discord/shard.py
index dfa255f5..eb9727b2 100644
--- a/discord/shard.py
+++ b/discord/shard.py
@@ -214,7 +214,7 @@ class AutoShardedClient(Client):
except Exception:
log.info('Failed to connect for shard_id: %s. Retrying...', shard_id)
await asyncio.sleep(5.0, loop=self.loop)
- return (await self.launch_shard(gateway, shard_id))
+ return await self.launch_shard(gateway, shard_id)
ws.token = self.http.token
ws._connection = self._connection
@@ -231,7 +231,7 @@ class AutoShardedClient(Client):
except asyncio.TimeoutError:
log.info('Timed out when connecting for shard_id: %s. Retrying...', shard_id)
await asyncio.sleep(5.0, loop=self.loop)
- return (await self.launch_shard(gateway, shard_id))
+ return await self.launch_shard(gateway, shard_id)
# keep reading the shard while others connect
self.shards[shard_id] = ret = Shard(ws, self)