From d274dcd37acea27808cda9d305921db043da01e5 Mon Sep 17 00:00:00 2001 From: dhleong Date: Mon, 10 Oct 2016 14:30:55 -0400 Subject: [PATCH] Fix test error --- python/ycm/diagnostic_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/diagnostic_filter.py b/python/ycm/diagnostic_filter.py index 6c653911..24936dd2 100644 --- a/python/ycm/diagnostic_filter.py +++ b/python/ycm/diagnostic_filter.py @@ -61,7 +61,7 @@ class DiagnosticFilter( object ): @staticmethod def from_filetype( user_options, filetypes ): - base = dict( user_options[ 'quiet_messages' ] ) + base = dict( user_options.get( 'quiet_messages', {} ) ) for filetype in filetypes: type_specific = user_options.get( filetype + '_quiet_messages', {} )