diff -r 006ee31b4835 -r 0572a215bd2f eric6/E5Gui/E5ErrorMessage.py --- a/eric6/E5Gui/E5ErrorMessage.py Sun Apr 11 12:38:16 2021 +0200 +++ b/eric6/E5Gui/E5ErrorMessage.py Sun Apr 11 16:53:48 2021 +0200 @@ -52,12 +52,11 @@ @return flag indicating that the message should be filtered out @rtype bool """ - for filterStr in Globals.toList(_filterSettings.value( - "MessageFilters", [])) + _defaultFilters: - if filterStr in message: - return True - - return False + return any( + filterStr in message + for filterStr in Globals.toList(_filterSettings.value( + "MessageFilters", [])) + _defaultFilters + ) class E5ErrorMessage(QErrorMessage):