From 10703da71b9c3fc83a051cc3e8d74d21a439b245 Mon Sep 17 00:00:00 2001 From: gsd Date: Sat, 11 Mar 2023 11:52:58 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8F=20=D0=B4=D1=83=D1=80=D0=B0=D1=87=D0=B5?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- player.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/player.py b/player.py index 6cd7145..d1e885f 100644 --- a/player.py +++ b/player.py @@ -335,7 +335,11 @@ def ban2message(ban): message = f"Ник: {ban['player_name']}\n" message += f"Причина: {ban['ban_reason']}\n" message += f"Время: {utime2human(ban['ban_utime'])}\n" - message += f"Кто забанил: {ban['banned_by']} | <@{ban['admin_info']['discord_id']}>\n" + try: + message += f"Кто забанил: {ban['banned_by']} | <@{ban['admin_info']['discord_id']}>\n" + except: + pass + #что выше надо править if ban['active'] == True: if ban['ban_length'] == 0: message += "Данный бан навсегда!\n"