From 63c43d74eca85a589c5f90c25168cfe6e1eeca35 Mon Sep 17 00:00:00 2001 From: "re.kovalev" Date: Mon, 16 May 2022 13:05:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D1=81=D0=BF=D1=80=D0=B0=D1=88=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- state_machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state_machine.py b/state_machine.py index a4f739b..737ea8c 100644 --- a/state_machine.py +++ b/state_machine.py @@ -58,7 +58,7 @@ def work(): if (word in machine[current_state].keys()): # Выполняем действия и переход в новое состояние current_state = machine[current_state][word]() - else: + elif (current_state != 'Начало'): # иначе переспросим speaker.speak("Я не понял, пожалуйста повторите") print("Сейчас автомат в: " + current_state)