mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Do not include stack trace when shell_command service times out (#96833)
This commit is contained in:
parent
9a2a920fd4
commit
2a18d0a764
@ -86,7 +86,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
async with async_timeout.timeout(COMMAND_TIMEOUT):
|
async with async_timeout.timeout(COMMAND_TIMEOUT):
|
||||||
stdout_data, stderr_data = await process.communicate()
|
stdout_data, stderr_data = await process.communicate()
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.exception(
|
_LOGGER.error(
|
||||||
"Timed out running command: `%s`, after: %ss", cmd, COMMAND_TIMEOUT
|
"Timed out running command: `%s`, after: %ss", cmd, COMMAND_TIMEOUT
|
||||||
)
|
)
|
||||||
if process:
|
if process:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user