Skip to content

Commit

Permalink
ban failed is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
TZFC committed Dec 8, 2023
1 parent 379b729 commit 8b169a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Utils/BanWithTimeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@


async def ban_with_timeout(live_room: LiveRoom, uid: int, timeout: int, database):
try:
await live_room.ban_user(uid)
except ResponseCodeException:
return
await live_room.ban_user(uid)
await asyncio.sleep(timeout)
try:
await live_room.unban_user(uid)
Expand Down

0 comments on commit 8b169a3

Please sign in to comment.