Merge pull request #2735 from MycroftAI/bugfix/load-status

Ensure load_status is initialized on load failure
pull/2738/head
Åke 2020-10-26 08:47:54 +01:00 committed by GitHub
commit 73e49949b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ class SkillManager(Thread):
load_status = skill_loader.load()
except Exception:
LOG.exception('Load of skill {} failed!'.format(skill_directory))
load_status = False
finally:
self.skill_loaders[skill_directory] = skill_loader