Handle exception in skill shutdown
An exception raised during the shutdown would previously cause the skill reload process to halt. This catches any exception and reports the error without halting the SkillManager
@@ -371,7 +371,11 @@ class SkillManager(Thread):
LOG.debug("Reloading Skill: " + skill_folder)
# removing listeners and stopping threads
+ try:
skill["instance"].shutdown()
+ except Exception:
+ LOG.exception("An error occured while shutting down {}"
+ .format(skill["instance"].name))
if DEBUG:
gc.collect() # Collect garbage to remove false references
