Remove exception too general

This commit is contained in:
atse 2024-07-04 17:30:28 +08:00
parent 89319c0cd9
commit a2afd81dcd

View File

@ -43,11 +43,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
if self.task.exception() is not None: if self.task.exception() is not None:
try: try:
raise self.task.exception() raise self.task.exception()
except ( except asyncio.TimeoutError:
Exception,
TimeoutError,
asyncio.exceptions.TimeoutError,
):
logging.error( logging.error(
"Encountered an error while updating parameter tree.", "Encountered an error while updating parameter tree.",
exc_info=True, exc_info=True,