From 111cd730fe8895978a987415e7acaccb0ff92359 Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Tue, 22 Dec 2020 22:25:03 +0100 Subject: [PATCH] Added handling of TimeoutError in GUI. --- rcon/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcon/gui.py b/rcon/gui.py index 3b51045..a810687 100644 --- a/rcon/gui.py +++ b/rcon/gui.py @@ -192,7 +192,7 @@ class GUI(Gtk.Window): # pylint: disable=R0902 self.show_error(' '.join(error.args)) except ConnectionRefusedError: self.show_error('Connection refused.') - except timeout: + except (TimeoutError, timeout): self.show_error('Connection timed out.') except RequestIdMismatch: self.show_error('Request ID mismatch.')