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

Send exception why the update fails #1938

Merged
merged 1 commit into from
Aug 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions supervisor/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def start(self):
# Check if system is healthy
if not self.supported:
_LOGGER.critical("System running in a unsupported environment!")
elif not self.healthy:
if not self.healthy:
_LOGGER.critical(
"System running in a unhealthy state and need manual intervention!"
)
Expand All @@ -180,11 +180,12 @@ async def start(self):
_LOGGER.warning("Ignore Supervisor updates!")
else:
await self.sys_supervisor.update()
except SupervisorUpdateError:
except SupervisorUpdateError as err:
_LOGGER.critical(
"Can't update supervisor! This will break some Add-ons or affect "
"future version of Home Assistant!"
)
self.sys_capture_exception(err)

# Start addon mark as initialize
await self.sys_addons.boot(AddonStartup.INITIALIZE)
Expand Down