mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 22:20:58 -05:00
test
This commit is contained in:
parent
f2b1fa87e0
commit
987e793bb2
@ -5,6 +5,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
|||||||
import sopel_modules
|
import sopel_modules
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
from .Logs import logs
|
from .Logs import logs
|
||||||
@ -62,7 +63,8 @@ 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(str(filepath), "r", encoding='utf-8')
|
sys.stderr(str(filepath))
|
||||||
|
inf = codecs.open(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 +115,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(str(filepath), "r", encoding='utf-8')
|
inf = codecs.open(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