From 9813064674dbd7926bde47872e7558b97da1ee5e Mon Sep 17 00:00:00 2001 From: AlberLC Date: Fri, 18 Aug 2023 06:32:05 +0200 Subject: [PATCH] Fix PollBot._on_poll_button_press --- flanabot/bots/poll_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flanabot/bots/poll_bot.py b/flanabot/bots/poll_bot.py index 23f405d..1bffecd 100644 --- a/flanabot/bots/poll_bot.py +++ b/flanabot/bots/poll_bot.py @@ -185,7 +185,7 @@ class PollBot(MultiBot, ABC): poll_data = message.data['poll'] - if not poll_data['is_active']: + if not poll_data['is_active'] or not message.buttons_info.pressed_button or not message.buttons_info.presser_user: return presser_id = message.buttons_info.presser_user.id