From f85ef2b7e4db85fa9836976d8f518819f4f86461 Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 10 Apr 2020 17:26:52 +0200 Subject: [PATCH] Kamoulox 2.0 correction --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 81b6ea3..0066a7c 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -230,7 +230,7 @@ class Mybot(commands.Cog): def get_word(word_type): content = [] - with open("/home/mika/kabot/kabot/kabot/ressources/base_kml.xml", "r", "ISO-8859-1") as file: + with open("/home/mika/kabot/kabot/kabot/ressources/base_kml.xml", "r", encoding="ISO-8859-1") as file: content = file.readlines() content = "".join(content) bs_content = bs(content, 'lxml')