diff --git a/python/ycm/completers/general/ultisnips_completer.py b/python/ycm/completers/general/ultisnips_completer.py index 7a364f4d..ca7b666e 100644 --- a/python/ycm/completers/general/ultisnips_completer.py +++ b/python/ycm/completers/general/ultisnips_completer.py @@ -45,7 +45,7 @@ class UltiSnipsCompleter( GeneralCompleter ): def OnBufferVisit( self, request_data ): - raw_candidates = request_data[ 'ultisnips_snippets' ] + raw_candidates = request_data.get( 'ultisnips_snippets', [] ) self._candidates = [ responses.BuildCompletionData( str( snip[ 'trigger' ] ),