Fix attribute errors when timing out during chunking start-up
This commit is contained in:
parent
21ed9f61d2
commit
b07d474bd6
@ -1125,7 +1125,7 @@ class AutoShardedConnectionState(ConnectionState):
|
|||||||
await utils.sane_wait_for(current_bucket, timeout=max_concurrency * 70.0)
|
await utils.sane_wait_for(current_bucket, timeout=max_concurrency * 70.0)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
fmt = 'Shard ID %s failed to wait for chunks from a sub-bucket with length %d'
|
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:
|
finally:
|
||||||
current_bucket = []
|
current_bucket = []
|
||||||
|
|
||||||
@ -1146,7 +1146,7 @@ class AutoShardedConnectionState(ConnectionState):
|
|||||||
try:
|
try:
|
||||||
await utils.sane_wait_for(futures, timeout=timeout)
|
await utils.sane_wait_for(futures, timeout=timeout)
|
||||||
except asyncio.TimeoutError:
|
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,
|
timeout,
|
||||||
len(guilds))
|
len(guilds))
|
||||||
for guild in children:
|
for guild in children:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user