From 08925755a31616dc35c85cb4e2e2b4d89f129acc Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 5 Jul 2024 17:31:55 +0800 Subject: [PATCH] Just catch asyncio.TimeoutError Will just change to TimeoutError once we switch to Python 3.11 in the flake. --- pytec/tec_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 8669166..9d5ffe2 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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: