From a2afd81dcd4be4dff6f1c39e9e6fbc68a8f2ecda Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 4 Jul 2024 17:30:28 +0800 Subject: [PATCH] Remove exception too general --- pytec/pytec/gui/model/thermostat.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 87e57f2..28c85db 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -43,11 +43,7 @@ class Thermostat(QObject, metaclass=PropertyMeta): if self.task.exception() is not None: try: raise self.task.exception() - except ( - Exception, - TimeoutError, - asyncio.exceptions.TimeoutError, - ): + except asyncio.TimeoutError: logging.error( "Encountered an error while updating parameter tree.", exc_info=True,