From bc1bef8cd2483e4bb22d53b1e134268816eaa9d3 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 20 Jun 2019 14:34:53 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Read.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Read.py b/sopel_modules/SpiceBot/Read.py index b637462..4280899 100644 --- a/sopel_modules/SpiceBot/Read.py +++ b/sopel_modules/SpiceBot/Read.py @@ -112,9 +112,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