dict get
This commit is contained in:
parent
33b655cd2a
commit
1329c28bc3
@ -145,7 +145,7 @@ class Answer:
|
|||||||
self.set_state("reset")
|
self.set_state("reset")
|
||||||
return
|
return
|
||||||
elif self.message_text == "Подключение Алисы":
|
elif self.message_text == "Подключение Алисы":
|
||||||
if self.user['yandex_id'] is None:
|
if self.user.get('yandex_id') is None:
|
||||||
words = platform.get_config('words')
|
words = platform.get_config('words')
|
||||||
while True:
|
while True:
|
||||||
random_words = [choice(words) for _ in range(4)]
|
random_words = [choice(words) for _ in range(4)]
|
||||||
|
Loading…
Reference in New Issue
Block a user