Remove exception too general

This commit is contained in:
atse 2024-07-04 17:30:28 +08:00
parent d75f207808
commit 2ed1bfab5e

View File

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