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