Extra safety around skill specific shutdown

Catch error in shutdown method of skill and continue with general shutdown
pull/1519/head
Åke Forslund 2018-04-12 11:11:04 +02:00
parent fa11ac7dbe
commit d61e3c2dd0
1 changed files with 5 additions and 1 deletions

View File

@ -886,7 +886,11 @@ class MycroftSkill(object):
def _shutdown(self):
"""Parent function called internally to shut down everything"""
self.shutdown()
try:
self.shutdown()
except exception as e:
LOG.error('Skill specific shutdown function encountered '
'an error: {}'.format(repr(e)))
# Store settings
self.settings.store()
self.settings.is_alive = False