From e7a50282b487f586a4f5aeea7b928511171fc3b1 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 9 May 2010 15:18:54 +0000 Subject: [PATCH] 3943: Crashed whilst exporting to data.gramps using a person filter 'Public'; fixed many filter rules for people svn: r15374 --- src/Filters/Rules/Person/_HaveChildren.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filters/Rules/Person/_HaveChildren.py b/src/Filters/Rules/Person/_HaveChildren.py index 7512db9cc..ad2a3ed58 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 not None and len(family.get_child_ref_list()) > 0 + return (family is not None) and len(family.get_child_ref_list()) > 0