Skip to content

Commit

Permalink
Update dev.py
Browse files Browse the repository at this point in the history
Signed-off-by: Yasir Aris M <[email protected]>
  • Loading branch information
yasirarism authored Jan 12, 2025
1 parent fbed06d commit 340fa29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions misskaty/plugins/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 340fa29

Please sign in to comment.