mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Update message for automatic sleeps
This commit is contained in:
parent
6f9e77bc2c
commit
3a911956b0
1 changed files with 2 additions and 1 deletions
|
|
@ -366,7 +366,8 @@ class Session:
|
|||
if amount > sleep_threshold >= 0:
|
||||
raise
|
||||
|
||||
log.warning(f'[{self.client.session_name}] Sleeping for {amount}s (required by "{query}")')
|
||||
log.warning(f'[{self.client.session_name}] Waiting for {amount} seconds before continuing '
|
||||
f'(required by "{query}")')
|
||||
|
||||
await asyncio.sleep(amount)
|
||||
except (OSError, TimeoutError, InternalServerError, ServiceUnavailable) as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue