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')