diff --git a/sopel_modules/SpiceBot/Read.py b/sopel_modules/SpiceBot/Read.py index 4280899..163d32b 100644 --- a/sopel_modules/SpiceBot/Read.py +++ b/sopel_modules/SpiceBot/Read.py @@ -62,7 +62,7 @@ class BotRead(): # Read dictionary from file, if not, enable an empty dict filereadgood = True try: - inf = codecs.open(filepath, "r", encoding='utf-8') + inf = codecs.open(str(filepath), "r", encoding='utf-8') infread = inf.read() dict_from_file = eval(infread) except Exception as e: @@ -113,7 +113,7 @@ class BotRead(): # Read dictionary from file, if not, enable an empty dict filereadgood = True try: - inf = codecs.open(filepath, "r", encoding='utf-8') + inf = codecs.open(str(filepath), "r", encoding='utf-8') infread = inf.read() dict_from_file = eval(infread) except Exception as e: