Actually its OSError

This commit is contained in:
atse 2024-08-22 17:58:37 +08:00
parent 881bf6ff6c
commit 93d96401b9

View File

@ -37,7 +37,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
if self._update_params_task.done():
try:
self._update_params_task.result()
except asyncio.TimeoutError:
except OSError:
logging.error(
"Encountered an error while polling for information from Thermostat.",
exc_info=True,