aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
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)