mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-27 21:45:27 +00:00
parent
d00ac622bc
commit
ab6efd02bc
@ -249,7 +249,14 @@ class Loop(Generic[LF]):
|
||||
self._last_iteration_failed = True
|
||||
if not self.reconnect:
|
||||
raise
|
||||
await asyncio.sleep(backoff.delay())
|
||||
|
||||
retry_after = backoff.delay()
|
||||
_log.exception(
|
||||
'Handling exception in internal background task %s. Retrying in %.2fs',
|
||||
self.coro.__qualname__,
|
||||
retry_after,
|
||||
)
|
||||
await asyncio.sleep(retry_after)
|
||||
else:
|
||||
if self._stop_next_iteration:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user