Update dev.py

Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
Yasir Aris M 2025-01-12 11:38:33 +07:00 committed by GitHub
parent 1de02727c9
commit c21d809fd7
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: async def error_handlers(_: "Client", __: "Update", error: "Exception") -> None:
if isinstance(error, (FloodWait, SlowmodeWait)): if isinstance(error, (FloodWait, SlowmodeWait)):
await asyncio.sleep(error.value) await asyncio.sleep(error.value)
    # else: # else:
        # if config.DEBUG_MODE: # if config.DEBUG_MODE:
        #   LOGGER.error(repr(error)) #   LOGGER.error(repr(error))
        # else: # else:
        #    return None   #     return None
@app.on_raw_update(group=-99) @app.on_raw_update(group=-99)