:YcmCompleter<TAB> now won't print traceback
If there's no semantic completer set for the current filetype, :YcmCompleter<TAB> would print an ugly traceback. Ugh. Fixes #989.
This commit is contained in:
parent
fa47898369
commit
3d733dca2d
@ -196,8 +196,11 @@ class YouCompleteMe( object ):
|
|||||||
|
|
||||||
def GetDefinedSubcommands( self ):
|
def GetDefinedSubcommands( self ):
|
||||||
if self._IsServerAlive():
|
if self._IsServerAlive():
|
||||||
return BaseRequest.PostDataToHandler( BuildRequestData(),
|
try:
|
||||||
'defined_subcommands' )
|
return BaseRequest.PostDataToHandler( BuildRequestData(),
|
||||||
|
'defined_subcommands' )
|
||||||
|
except ServerError:
|
||||||
|
return []
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user