mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Fix error handling on tasks (#1608)
This commit is contained in:
parent
657ee84e39
commit
7b2377291f
@ -3,7 +3,7 @@ import asyncio
|
||||
import logging
|
||||
|
||||
from .coresys import CoreSysAttributes
|
||||
from .exceptions import HomeAssistantError, CoreDNSError
|
||||
from .exceptions import AudioError, CliError, CoreDNSError, HomeAssistantError
|
||||
|
||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
@ -258,7 +258,7 @@ class Tasks(CoreSysAttributes):
|
||||
|
||||
try:
|
||||
await self.sys_audio.start()
|
||||
except CoreDNSError:
|
||||
except AudioError:
|
||||
_LOGGER.error("Watchdog PulseAudio reanimation fails!")
|
||||
|
||||
async def _watchdog_cli_docker(self):
|
||||
@ -270,5 +270,5 @@ class Tasks(CoreSysAttributes):
|
||||
|
||||
try:
|
||||
await self.sys_cli.start()
|
||||
except CoreDNSError:
|
||||
except CliError:
|
||||
_LOGGER.error("Watchdog cli reanimation fails!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user