From 0107ed0accb70c79f42c58184a4fce26745b8181 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 22 Aug 2024 17:58:37 +0800 Subject: [PATCH] Actually its OSError --- pytec/pytec/gui/model/thermostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 8ce98d0..433a2e5 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -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,