Use new format for logging exceptions - host/info.py (#3204)

Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
This commit is contained in:
Samprit | Nekrós 2021-10-06 16:31:04 +05:30 committed by GitHub
parent a6d1078fe3
commit c07c7c5146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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