mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 10:34:51 +00:00
Remove global exception
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
284395d4f5
commit
1c8571b87a
1 changed files with 1 additions and 1 deletions
|
|
@ -661,7 +661,7 @@ async def update_restart(_, ctx: Message, strings):
|
|||
os.execvp(sys.executable, [sys.executable, "-m", "misskaty"])
|
||||
|
||||
|
||||
@app.on_error(errors=(Exception, FloodWait, RPCError, SlowmodeWait))
|
||||
@app.on_error(errors=(FloodWait, RPCError, SlowmodeWait))
|
||||
async def error_handlers(_: "Client", __: "Update", error: "Exception") -> None:
|
||||
if isinstance(error, (FloodWait, SlowmodeWait)):
|
||||
await asyncio.sleep(error.value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue