Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range in chatterbotapi.py #3

Open
ufa opened this issue Sep 29, 2014 · 0 comments
Open

IndexError: list index out of range in chatterbotapi.py #3

ufa opened this issue Sep 29, 2014 · 0 comments

Comments

@ufa
Copy link

ufa commented Sep 29, 2014

Hello,
One more stability issue. I am getting a lot of those regularly:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(_self.__args, *_self.__kwargs)
File "bot.py", line 178, in bot
AI(group,peer,message)
File "bot.py", line 84, in AI
reply=callmodule(message,peer)
File "bot.py", line 62, in callmodule
reply = botsessions[peer].think(message)
File ".../python-telegram-bot/chatterbotapi.py", line 58, in think
return self.think_thought(thought).text
File "/.../python-telegram-bot/chatterbotapi.py", line 152, in think_thought
response_thought.text = response_dom.getElementsByTagName('that')[0].childNodes[0].data.strip()
IndexError: list index out of range

I not sure if it is a issue on chatterbotapi.py or in bot.py, so I have opened this issue so you can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant