forked from M-Labs/thermostat
Remove exception too general
This commit is contained in:
parent
a64532eb23
commit
9dd4138276
@ -43,11 +43,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
|||||||
if self.task.done():
|
if self.task.done():
|
||||||
try:
|
try:
|
||||||
_ = self.task.result()
|
_ = self.task.result()
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user