mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Update dev.py
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
5bf1c04a9a
commit
1de02727c9
1 changed files with 2 additions and 2 deletions
|
|
@ -663,8 +663,8 @@ async def update_restart(_, ctx: Message, strings):
|
|||
|
||||
@app.on_error(errors=(Exception, FloodWait, RPCError, SlowmodeWait))
|
||||
async def error_handlers(_: "Client", __: "Update", error: "Exception") -> None:
|
||||
if isinstance(error, (FloodWait, SlowmodeWait)):
|
||||
await asyncio.sleep(error.value)
|
||||
if isinstance(error, (FloodWait, SlowmodeWait)):
|
||||
await asyncio.sleep(error.value)
|
||||
# else:
|
||||
# if config.DEBUG_MODE:
|
||||
# LOGGER.error(repr(error))
|
||||
|
|
|
|||
Loading…
Reference in a new issue