From 6b1b6d1da8ea25f61d9e6d56fd3f4cde78b5cd6d Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 15 Mar 2019 17:43:17 +0300 Subject: [PATCH] fix --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b7afbae..09c6ca1 100755 --- a/main.py +++ b/main.py @@ -185,8 +185,8 @@ def _process_message(bot: Bot, m: Message): user.update_from_message(r) except Unauthorized: try: - name = conn.root.users[uid].name - del conn.root.users[uid] + name = conn.root.subscribers[uid].name + del conn.root.subscribers[uid] commit() bot.send_message(MANAGEMENT_CHAT, f'{name} был удален ' f'из-за блокировки бота', parse_mode='html')