mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -05:00
test
This commit is contained in:
parent
d6e00fc85f
commit
98f9cb0fbb
@ -61,9 +61,9 @@ class BotRead():
|
|||||||
|
|
||||||
# Read dictionary from file, if not, enable an empty dict
|
# Read dictionary from file, if not, enable an empty dict
|
||||||
filereadgood = True
|
filereadgood = True
|
||||||
inf = codecs.open(filepath, "r", encoding='utf-8')
|
|
||||||
infread = inf.read()
|
|
||||||
try:
|
try:
|
||||||
|
inf = codecs.open(filepath, "r", encoding='utf-8')
|
||||||
|
infread = inf.read()
|
||||||
dict_from_file = eval(infread)
|
dict_from_file = eval(infread)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
filereadgood = False
|
filereadgood = False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user