From ca9df38b110d3ef679fb886420123a403058e024 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Mon, 26 Mar 2018 21:18:56 -0500 Subject: [PATCH] Fix Relationship path between filter for silent fail (#586) Fixes #10509 --- gramps/gen/filters/rules/person/_relationshippathbetween.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gen/filters/rules/person/_relationshippathbetween.py b/gramps/gen/filters/rules/person/_relationshippathbetween.py index 05b06db58..dbd6c2d04 100644 --- a/gramps/gen/filters/rules/person/_relationshippathbetween.py +++ b/gramps/gen/filters/rules/person/_relationshippathbetween.py @@ -55,7 +55,7 @@ class RelationshipPathBetween(Rule): try: root1_handle = db.get_person_from_gramps_id(self.list[0]).get_handle() root2_handle = db.get_person_from_gramps_id(self.list[1]).get_handle() - self.init_list(root1_handle,root2_handle) + self.init_list(root1_handle, root2_handle) except: pass @@ -82,6 +82,8 @@ class RelationshipPathBetween(Rule): pmap[person.get_handle()] = rank fam_id = person.get_main_parents_family_handle() + if not fam_id: + return family = self.db.get_family_from_handle(fam_id) if family is not None: self.apply_filter(rank+1, family.get_father_handle(), plist, pmap)