mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 02:56: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
|
import logging
|
||||||
|
|
||||||
from .coresys import CoreSysAttributes
|
from .coresys import CoreSysAttributes
|
||||||
from .exceptions import HomeAssistantError, CoreDNSError
|
from .exceptions import AudioError, CliError, CoreDNSError, HomeAssistantError
|
||||||
|
|
||||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ class Tasks(CoreSysAttributes):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await self.sys_audio.start()
|
await self.sys_audio.start()
|
||||||
except CoreDNSError:
|
except AudioError:
|
||||||
_LOGGER.error("Watchdog PulseAudio reanimation fails!")
|
_LOGGER.error("Watchdog PulseAudio reanimation fails!")
|
||||||
|
|
||||||
async def _watchdog_cli_docker(self):
|
async def _watchdog_cli_docker(self):
|
||||||
@ -270,5 +270,5 @@ class Tasks(CoreSysAttributes):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await self.sys_cli.start()
|
await self.sys_cli.start()
|
||||||
except CoreDNSError:
|
except CliError:
|
||||||
_LOGGER.error("Watchdog cli reanimation fails!")
|
_LOGGER.error("Watchdog cli reanimation fails!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user