mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -05:00
test
This commit is contained in:
parent
bc1bef8cd2
commit
f2b1fa87e0
@ -62,7 +62,7 @@ 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
|
||||||
try:
|
try:
|
||||||
inf = codecs.open(filepath, "r", encoding='utf-8')
|
inf = codecs.open(str(filepath), "r", encoding='utf-8')
|
||||||
infread = inf.read()
|
infread = inf.read()
|
||||||
dict_from_file = eval(infread)
|
dict_from_file = eval(infread)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -113,7 +113,7 @@ 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
|
||||||
try:
|
try:
|
||||||
inf = codecs.open(filepath, "r", encoding='utf-8')
|
inf = codecs.open(str(filepath), "r", encoding='utf-8')
|
||||||
infread = inf.read()
|
infread = inf.read()
|
||||||
dict_from_file = eval(infread)
|
dict_from_file = eval(infread)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user