Skip to content

Commit

Permalink
Handling vim.error from omnifunc
Browse files Browse the repository at this point in the history
If the omnifunc encounters a syntax error, we need to handle this without
showing a traceback to the user.
  • Loading branch information
Valloric committed Jan 5, 2014
1 parent e424d75 commit 91368c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ycm/completers/all/omni_completer.py
Expand Up @@ -95,7 +95,7 @@ def ComputeCandidatesInner( self, request_data ):
raise TypeError( OMNIFUNC_NOT_LIST )

return filter( bool, items )
except ( TypeError, ValueError ) as error:
except ( TypeError, ValueError, vim.error ) as error:
vimsupport.PostVimMessage(
OMNIFUNC_RETURNED_BAD_VALUE + ' ' + str( error ) )
return []
Expand Down

0 comments on commit 91368c0

Please sign in to comment.