This commit is contained in:
deathbybandaid 2019-06-20 14:34:53 -04:00
parent 98f9cb0fbb
commit bc1bef8cd2

View File

@ -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