From c07c7c5146bee6c34bf145b1941a947366c8c957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samprit=20=7C=20Nekr=C3=B3s?= Date: Wed, 6 Oct 2021 16:31:04 +0530 Subject: [PATCH] Use new format for logging exceptions - host/info.py (#3204) Co-authored-by: Ludeeus --- supervisor/host/info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supervisor/host/info.py b/supervisor/host/info.py index 554181c2f..a97b981ff 100644 --- a/supervisor/host/info.py +++ b/supervisor/host/info.py @@ -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