We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc09d9 commit 51e976fCopy full SHA for 51e976f
src/server/game/lib_llm.py
@@ -43,12 +43,14 @@ def generate_letters(n):
43
return r
44
45
46
-def check_dict(word, language="fr"):
+def check_dict(word):
47
global word_dict
48
49
word = remove_accents(word.lower())
50
- return word in word_dict[word[0]]
51
-
+ try:
+ return word in word_dict[word[0]]
52
+ except KeyError:
53
+ return False
54
55
def check_list(word, letters):
56
for l in remove_accents(word):
0 commit comments