mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +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:
|
||||
stdout, _ = await proc.communicate()
|
||||
except OSError as err:
|
||||
_LOGGER.error("Can't read kernel log: %s", err)
|
||||
raise HostError() from err
|
||||
raise HostError(f"Can't read kernel log: {err}", _LOGGER.error) from err
|
||||
|
||||
return stdout
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user