Protection from family_handle being None
This commit is contained in:
parent
899765beb6
commit
c6fa40d389
@ -66,6 +66,7 @@ class IsDuplicatedAncestorOf(Rule):
|
||||
|
||||
def init_ancestor_list(self, db, person):
|
||||
fam_id = person.get_main_parents_family_handle()
|
||||
if fam_id:
|
||||
fam = db.get_family_from_handle(fam_id)
|
||||
if fam:
|
||||
f_id = fam.get_father_handle()
|
||||
|
Loading…
Reference in New Issue
Block a user