forked from M-Labs/thermostat
Timeout Error things
This commit is contained in:
parent
c1fdcda621
commit
54bedc3a83
@ -32,10 +32,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
||||
if self.task.exception() is not None:
|
||||
try:
|
||||
raise self.task.exception()
|
||||
except (
|
||||
TimeoutError,
|
||||
asyncio.TimeoutError, # Remove in Python 3.11
|
||||
):
|
||||
except asyncio.TimeoutError:
|
||||
logging.error(
|
||||
"Encountered an error while updating parameter tree.",
|
||||
exc_info=True,
|
||||
|
@ -264,7 +264,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
await self.bail()
|
||||
|
||||
# TODO: Remove asyncio.TimeoutError in Python 3.11
|
||||
except (OSError, TimeoutError, asyncio.TimeoutError):
|
||||
except (OSError, asyncio.TimeoutError):
|
||||
try:
|
||||
await self.bail()
|
||||
except ConnectionResetError:
|
||||
|
Loading…
Reference in New Issue
Block a user