From f61593d5c9599050954cc812f1b0a65ea8e5196e Mon Sep 17 00:00:00 2001 From: gsd Date: Fri, 3 Mar 2023 21:48:23 +0300 Subject: [PATCH] fix --- player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/player.py b/player.py index 65f73a1..a651410 100644 --- a/player.py +++ b/player.py @@ -190,6 +190,7 @@ class Player: "secretkey":os.getenv("BACKEND_SECRETKEY"), "steam64": self.requester_steam64}) as session: async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/ban?steam64={self.steam64}&ban_reason={reason}&ban_length={minutes}", ssl=False) as response: + await response.text() if response.status == 200: return "Игрок забанен или уже был в бане" if response.status == 404: