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

Fix list index out of range error #3707

Merged
merged 1 commit into from Jun 7, 2019
Merged

Conversation

tabergma
Copy link
Contributor

@tabergma tabergma commented Jun 5, 2019

Proposed changes:
In case the bot predicts actions_listen and there are no events yet or just one, we get an list index out of range. To avoid that, check if we already one two or more events, in order to display any buttons.

fixes #3691

Status (please check what you already did):

  • made PR ready for code review
  • added some tests for the functionality
  • updated the documentation
  • updated the changelog
  • reformat files using black (please check Readme for instructions)

@tabergma tabergma requested a review from akelad June 5, 2019 12:59
@tabergma tabergma self-assigned this Jun 5, 2019
@tabergma tabergma force-pushed the interactive-learning-bug branch 4 times, most recently from 2e9238a to 422b110 Compare June 7, 2019 09:16
Copy link
Contributor

@akelad akelad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@tabergma tabergma merged commit e7c8420 into master Jun 7, 2019
@tabergma tabergma deleted the interactive-learning-bug branch June 7, 2019 11:13
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

Successfully merging this pull request may close these issues.

Error on interactive learning on rasa version 1.0.6
2 participants