Fix Descendant Tree report for HandleError when no parents on family (#925)
Fixes #11365
This commit is contained in:
parent
6b2066c797
commit
c312c96987
@ -225,7 +225,10 @@ class TitleDPY(DescendantTitleBase):
|
|||||||
|
|
||||||
center = self.database.get_person_from_gramps_id(person_id)
|
center = self.database.get_person_from_gramps_id(person_id)
|
||||||
family2_h = center.get_main_parents_family_handle()
|
family2_h = center.get_main_parents_family_handle()
|
||||||
|
if family2_h:
|
||||||
family2 = self.database.get_family_from_handle(family2_h)
|
family2 = self.database.get_family_from_handle(family2_h)
|
||||||
|
else:
|
||||||
|
family2 = None
|
||||||
|
|
||||||
person_list = None
|
person_list = None
|
||||||
if family2:
|
if family2:
|
||||||
@ -270,7 +273,10 @@ class TitleDFY(DescendantTitleBase):
|
|||||||
|
|
||||||
parent_list = None
|
parent_list = None
|
||||||
family_h = person.get_main_parents_family_handle()
|
family_h = person.get_main_parents_family_handle()
|
||||||
|
if family_h:
|
||||||
family = self.database.get_family_from_handle(family_h)
|
family = self.database.get_family_from_handle(family_h)
|
||||||
|
else:
|
||||||
|
family = None
|
||||||
if family: # family = fathers parents
|
if family: # family = fathers parents
|
||||||
father_h = family.get_father_handle()
|
father_h = family.get_father_handle()
|
||||||
mother_h = family.get_mother_handle()
|
mother_h = family.get_mother_handle()
|
||||||
|
Loading…
Reference in New Issue
Block a user