Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Bugfix Converse error #2503

Merged
merged 5 commits into from
Apr 2, 2020
Merged

Conversation

forslund
Copy link
Collaborator

Description

Converse errors, for example a skill that has been removed or an empty insertion (like from padatious) could cause a skill to be skipped. This handles the list by iterating over a copy instead of using the same one that a skill can be removed from.

In addition,

  • Padatious no longer calls make_active sending an empty skill id to the active_skill list
  • Empty skill IDs don't get added to the list by add_active_skill()
  • Some minor cleanup of docstrings and unused imports.

Will add a couple of unittests to this.

How to test

Ensure that get_response() still functions as intended.

Contributor license agreement signed?

CLA [ Yes ]

A skill can be missed if a skill is removed (due to an error) from the
list during iteration
Padatious doesn't shouldn't report active like other skills, this only
sent an empty skill entry to the active skills list.
Only allow non-empty skill IDs into the list of active skills
- Remove print statement
- Remove unused import
- Updated some docstrings
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Mar 15, 2020
Including a case where an error occur.
@forslund forslund force-pushed the bugfix/converse-error branch from 744fdf5 to 6dce109 Compare March 15, 2020 21:23
@forslund forslund changed the title Bugfix/converse error Bugfix Converse error Mar 16, 2020
@forslund forslund merged commit 28c3a61 into MycroftAI:dev Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) Type: Bug - complex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants