屏蔽温度传感器报错

This commit is contained in:
mofeng 2023-12-16 16:45:39 +08:00
parent 500771dfa7
commit 039d4c6946

View File

@ -100,7 +100,6 @@ class HwInfoSubmanager(BaseInfoSubmanager):
try: try:
return int((await aiofs.read(temp_path)).strip()) / 1000 return int((await aiofs.read(temp_path)).strip()) / 1000
except Exception as err: except Exception as err:
get_logger(0).error("Can't read CPU temp from %s: %s", temp_path, err)
return None return None
async def __get_throttling(self) -> (dict | None): async def __get_throttling(self) -> (dict | None):