forked from M-Labs/thermostat
Just catch asyncio.TimeoutError
Will just change to TimeoutError once we switch to Python 3.11 in the flake.
This commit is contained in:
parent
3d41254f43
commit
08925755a3
@ -264,7 +264,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
await self.bail()
|
await self.bail()
|
||||||
|
|
||||||
# TODO: Remove asyncio.TimeoutError in Python 3.11
|
# TODO: Remove asyncio.TimeoutError in Python 3.11
|
||||||
except (OSError, TimeoutError, asyncio.TimeoutError):
|
except (OSError, asyncio.TimeoutError):
|
||||||
try:
|
try:
|
||||||
await self.bail()
|
await self.bail()
|
||||||
except ConnectionResetError:
|
except ConnectionResetError:
|
||||||
|
Loading…
Reference in New Issue
Block a user