mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 02:26:30 +00:00
Use new format for logging exceptions - host/info.py (#3204)
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
This commit is contained in:
parent
a6d1078fe3
commit
c07c7c5146
@ -120,8 +120,7 @@ class InfoCenter(CoreSysAttributes):
|
|||||||
try:
|
try:
|
||||||
stdout, _ = await proc.communicate()
|
stdout, _ = await proc.communicate()
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
_LOGGER.error("Can't read kernel log: %s", err)
|
raise HostError(f"Can't read kernel log: {err}", _LOGGER.error) from err
|
||||||
raise HostError() from err
|
|
||||||
|
|
||||||
return stdout
|
return stdout
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user