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