Actually its OSError

This commit is contained in:
atse 2024-08-22 17:58:37 +08:00
parent ccec874756
commit 9ad20dcf4d

View File

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