fix remove

This commit is contained in:
Rykov7
2023-01-03 02:25:19 +03:00
parent 7d6353f41a
commit 5dfd8743f3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ import random
def speak(chance_of):
number = random.randint(0, chance_of)
if number == 0:
return random.choice(i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8'))
return random.choice(i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8') if i)