Update dev.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-01-12 11:40:58 +07:00 committed by GitHub
parent c21d809fd7
commit 6f29813f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -665,11 +665,11 @@ 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:
# if config.DEBUG_MODE:
# LOGGER.error(repr(error))
# else:
# return None
@app.on_raw_update(group=-99)