Just catch asyncio.TimeoutError

Will just change to TimeoutError once we switch to Python 3.11 in the
flake.
This commit is contained in:
atse 2024-07-05 17:31:55 +08:00
parent 4a038d04d1
commit 206b825e88
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,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: