diff --git a/Utils/BanWithTimeout.py b/Utils/BanWithTimeout.py index 5161610..78ef6b4 100644 --- a/Utils/BanWithTimeout.py +++ b/Utils/BanWithTimeout.py @@ -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)