From bf4b3962bc21fe3cc417bce03d82ef7e4f4abab8 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Sat, 16 Mar 2019 22:12:11 -0500 Subject: [PATCH] Fix relationshippathbetween filter rule when parent is missing (#792) Fixes #11049 Another HandleError issue, this one hidden by the raw except. Filter rule just did not work if a family in the path had a missing parent. --- gramps/gen/filters/rules/person/_relationshippathbetween.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/filters/rules/person/_relationshippathbetween.py b/gramps/gen/filters/rules/person/_relationshippathbetween.py index dbd6c2d04..11ab408bf 100644 --- a/gramps/gen/filters/rules/person/_relationshippathbetween.py +++ b/gramps/gen/filters/rules/person/_relationshippathbetween.py @@ -75,6 +75,8 @@ class RelationshipPathBetween(Rule): self.desc_list(child_ref.ref, map, 0) def apply_filter(self, rank, handle, plist, pmap): + if not handle: + return person = self.db.get_person_from_handle(handle) if person is None: return