mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 19:44:52 +08:00
Merge pull request #3 from tek/dev
catch errors in jedi#show_func_def() thx @tek
This commit is contained in:
@@ -61,7 +61,13 @@ endfunction
|
|||||||
" func_def
|
" func_def
|
||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
function jedi#show_func_def()
|
function jedi#show_func_def()
|
||||||
python show_func_def(get_script().get_in_function_call())
|
python << PYTHONEOF
|
||||||
|
if 1:
|
||||||
|
try:
|
||||||
|
show_func_def(get_script().get_in_function_call())
|
||||||
|
except Exception as e:
|
||||||
|
print e
|
||||||
|
PYTHONEOF
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user