From 80fca6d0c773fff9cbb07c655730416fc24480c6 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sat, 29 Mar 2025 00:18:40 +0300 Subject: [PATCH] fix --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index e280df1..453220e 100644 --- a/worker.py +++ b/worker.py @@ -51,7 +51,7 @@ class Daemon(base.Daemon, queues.TasksHandlerMixin): message: Message = Message.de_json(json.dumps(payload)) questions = client.get_config('questions') current_question = store.get(message.chat.id) - if current_question: + if current_question is not None: self.send("Вот ответ на вопрос", message.chat.id) text_split = [current_question['answer'][i:i+1000] for i in range(0, len(current_question['answer']), 1000)] for elem in text_split: