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', {} )