diff --git a/python/ycm/completers/all/omni_completer.py b/python/ycm/completers/all/omni_completer.py index 5bfffeff..eb405d57 100644 --- a/python/ycm/completers/all/omni_completer.py +++ b/python/ycm/completers/all/omni_completer.py @@ -95,7 +95,7 @@ class OmniCompleter( Completer ): 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 []