mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
9829751b4a
commit
72b84df5f3
@ -94,10 +94,11 @@ class SpiceBot_AI():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
dict_from_file = untangle.parse(aimlfile)
|
dict_from_file = untangle.parse(aimlfile)
|
||||||
logs.log('SpiceBot_AI', dict_from_file)
|
# logs.log('SpiceBot_AI', dict_from_file)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
filereadgood = e
|
||||||
filereadgood = False
|
filereadgood = False
|
||||||
logs.log('SpiceBot_AI', "Error loading %s: %s (%s)" % ('aiml', e, aimlfile))
|
# logs.log('SpiceBot_AI', "Error loading %s: %s (%s)" % ('aiml', e, aimlfile))
|
||||||
|
|
||||||
if filereadgood and isinstance(dict_from_file, dict):
|
if filereadgood and isinstance(dict_from_file, dict):
|
||||||
self.dict["counts"] += 1
|
self.dict["counts"] += 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user