diff options
| author | Rapptz <[email protected]> | 2020-10-17 22:02:44 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-10-17 22:02:44 -0400 |
| commit | b07d474bd690f4a7f0f5bf3d7e1d526c6beaaac4 (patch) | |
| tree | c46e176e8a3e0be4b11e6ebeee29bb48118fedc0 | |
| parent | Fix disconnect when trying to move to another voice channel. (diff) | |
| download | discord.py-b07d474bd690f4a7f0f5bf3d7e1d526c6beaaac4.tar.xz discord.py-b07d474bd690f4a7f0f5bf3d7e1d526c6beaaac4.zip | |
Fix attribute errors when timing out during chunking start-up
| -rw-r--r-- | discord/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/state.py b/discord/state.py index 82dbea68..67ffb2f1 100644 --- a/discord/state.py +++ b/discord/state.py @@ -1125,7 +1125,7 @@ class AutoShardedConnectionState(ConnectionState): await utils.sane_wait_for(current_bucket, timeout=max_concurrency * 70.0) except asyncio.TimeoutError: fmt = 'Shard ID %s failed to wait for chunks from a sub-bucket with length %d' - log.warning(fmt, self.shard_id, len(current_bucket)) + log.warning(fmt, guild.shard_id, len(current_bucket)) finally: current_bucket = [] @@ -1146,7 +1146,7 @@ class AutoShardedConnectionState(ConnectionState): try: await utils.sane_wait_for(futures, timeout=timeout) except asyncio.TimeoutError: - log.warning('Shard ID %s failed to wait for chunks (timeout=%.2f) for %d guilds', self.shard_id, + log.warning('Shard ID %s failed to wait for chunks (timeout=%.2f) for %d guilds', shard_id, timeout, len(guilds)) for guild in children: |