diff --git a/src/Filters/Rules/Person/_HaveChildren.py b/src/Filters/Rules/Person/_HaveChildren.py index 65fb03c1c..7512db9cc 100644 --- a/src/Filters/Rules/Person/_HaveChildren.py +++ b/src/Filters/Rules/Person/_HaveChildren.py @@ -47,4 +47,4 @@ class HaveChildren(Rule): def apply(self,db,person): for family_handle in person.get_family_handle_list(): family = db.get_family_from_handle(family_handle) - return family and len(family.get_child_ref_list()) > 0 + return family not None and len(family.get_child_ref_list()) > 0