diff --git a/src/FilterEditor/_FilterEditor.py b/src/FilterEditor/_FilterEditor.py index 56143b997..ed9eb8fe2 100644 --- a/src/FilterEditor/_FilterEditor.py +++ b/src/FilterEditor/_FilterEditor.py @@ -213,7 +213,8 @@ class FilterEditor(ManagedWindow.ManagedWindow): filters = self.filterdb.get_filters(space) # Leave only those that are not in the removal set - filters = [the_filter in filters if the_filter not in filter_set] + filters = [the_filter for the_filter in filters + if the_filter not in filter_set] def _find_dependent_filters(self,space,gfilter,filter_set=set()): """