forked from VimPlug/jedi-vim
Merge pull request #181 from lodagro/vim74_ValueError
Catch ValueError, close #180.
This commit is contained in:
@@ -30,6 +30,7 @@ Emily Strickland (@emilyst) <mail@emily.st>
|
||||
Tin Tvrtković (@Tinche) <tinchester@gmail.com>
|
||||
Zekeriya Koc (@zekzekus) <zekzekus@gmail.com>
|
||||
ethinx (@ethinx) <eth2net@gmail.com>
|
||||
Wouter Overmeire (@lodagro) <lodagro@gmail.com>
|
||||
|
||||
|
||||
@something are github user names.
|
||||
|
||||
@@ -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