Update dev.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-01-12 12:03:23 +07:00 committed by GitHub
parent fbed06d82b
commit 340fa29896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -665,11 +665,8 @@ async def update_restart(_, ctx: Message, strings):
async def error_handlers(_: "Client", __: "Update", error: "Exception") -> None:
if isinstance(error, (FloodWait, SlowmodeWait)):
await asyncio.sleep(error.value)
# else:
# if config.DEBUG_MODE:
# LOGGER.error(repr(error))
# else:
# return None
else:
LOGGER.error(repr(error))
@app.on_raw_update(group=-99)