mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Catch ValueError, close #180.
This commit is contained in:
@@ -436,7 +436,7 @@ def _tabnew(path, options=''):
|
||||
buf_nr = int(buf_nr) - 1
|
||||
try:
|
||||
buf_path = vim.buffers[buf_nr].name
|
||||
except LookupError:
|
||||
except (LookupError, ValueError):
|
||||
# Just do good old asking for forgiveness.
|
||||
# don't know why this happens :-)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user