diff --git a/gramps/gen/filters/rules/note/_matchesregexpof.py b/gramps/gen/filters/rules/note/_matchesregexpof.py index 007eb88f1..00ed77b2a 100644 --- a/gramps/gen/filters/rules/note/_matchesregexpof.py +++ b/gramps/gen/filters/rules/note/_matchesregexpof.py @@ -49,7 +49,6 @@ class MatchesRegexpOf(Rule): def apply(self, db, note): """ Apply the filter """ - text = note.get() - if self.match_substring(0, text) is not None: + if self.match_substring(0, note.get()): return True return False