From d399f58bf6f250fba391803945fb2f683d3eb06e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 10 Sep 2013 10:10:04 +0000 Subject: [PATCH] 7053: Narrated Website report crashes; check for family == None on lookup svn: r23076 --- src/Relationship.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Relationship.py b/src/Relationship.py index 954e3acb7..da01914ec 100644 --- a/src/Relationship.py +++ b/src/Relationship.py @@ -616,6 +616,8 @@ class RelationshipCalculator(object): birthmother = None for fam in person.get_parent_family_handle_list(): family = db.get_family_from_handle(fam) + if not family: + continue childrel = [(ref.get_mother_relation(), ref.get_father_relation()) for ref in family.get_child_ref_list() @@ -637,6 +639,8 @@ class RelationshipCalculator(object): nb_parents = [] for fam in person.get_parent_family_handle_list(): family = db.get_family_from_handle(fam) + if not family: + continue childrel = [(ref.get_mother_relation(), ref.get_father_relation()) for ref in family.get_child_ref_list() @@ -964,6 +968,8 @@ class RelationshipCalculator(object): for family_handle in family_handles : rel_fam_new = rel_fam + [fam] family = db.get_family_from_handle(family_handle) + if not family: + continue #obtain childref for this person childrel = [(ref.get_mother_relation(), ref.get_father_relation()) for ref in