diff options
Diffstat (limited to '')
| -rw-r--r-- | py/complete.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/complete.py b/py/complete.py index 8a8bf7d..29eb760 100644 --- a/py/complete.py +++ b/py/complete.py @@ -50,3 +50,8 @@ try: render_text_chunks(text_chunks) 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 |