From 8e79df140c792dc3e43a79f2f3b2684b5da46133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pol=C3=A1=C4=8Dek?= Date: Sun, 9 Jun 2024 21:42:07 +0200 Subject: [PATCH] Temperature only on Linux --- python/yaroc/utils/sys_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/yaroc/utils/sys_info.py b/python/yaroc/utils/sys_info.py index 2a65550..cdceba9 100644 --- a/python/yaroc/utils/sys_info.py +++ b/python/yaroc/utils/sys_info.py @@ -91,7 +91,7 @@ def create_sys_minicallhome() -> MiniCallHome: logging.error(err) logging.error(result.stdout) - else: + elif not is_windows(): temperatures = psutil.sensors_temperatures() # TODO: make this more general than ThinkPad cpu_temp = next(filter(lambda x: x.label == "CPU", temperatures["thinkpad"]))