summaryrefslogtreecommitdiff
path: root/py/chat.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--py/chat.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/chat.py b/py/chat.py
index 955832b..ce7cd95 100644
--- a/py/chat.py
+++ b/py/chat.py
@@ -87,3 +87,8 @@ try:
vim.command("redraw")
except KeyboardInterrupt:
vim.command("normal! a Ctrl-C...")
+except URLError as error:
+ if isinstance(error.reason, socket.timeout):
+ vim.command("normal! aRequest timeout...")
+ else:
+ raise error