mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
jedi#debug_info: try/catch failures from s:init_python()
This is relevant for when using `:JediDebuginfo` in a broken setup, where the call to `jedi#init_python()` in the autoload file throws an error already (but `jedi#debug_info` is defined/loaded before already).
This commit is contained in:
@@ -186,7 +186,12 @@ endfunction
|
|||||||
|
|
||||||
function! jedi#debug_info() abort
|
function! jedi#debug_info() abort
|
||||||
if s:python_version ==# 'null'
|
if s:python_version ==# 'null'
|
||||||
call s:init_python()
|
try
|
||||||
|
call s:init_python()
|
||||||
|
catch
|
||||||
|
echohl WarningMsg | echom v:exception | echohl None
|
||||||
|
return
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
if &verbose
|
if &verbose
|
||||||
if &filetype !=# 'python'
|
if &filetype !=# 'python'
|
||||||
|
|||||||
Reference in New Issue
Block a user