Skip to content

Commit 51e976f

Browse files
A bit of housekeeping
1 parent dcc09d9 commit 51e976f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/server/game/lib_llm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ def generate_letters(n):
4343
return r
4444

4545

46-
def check_dict(word, language="fr"):
46+
def check_dict(word):
4747
global word_dict
4848

4949
word = remove_accents(word.lower())
50-
return word in word_dict[word[0]]
51-
50+
try:
51+
return word in word_dict[word[0]]
52+
except KeyError:
53+
return False
5254

5355
def check_list(word, letters):
5456
for l in remove_accents(word):

0 commit comments

Comments
 (0)