Fix HandleError on IsLessThanNthGenerationAncestorOf filters
Fixes #10286
This commit is contained in:
parent
b9b06f1668
commit
33ebd5d0b0
@ -187,6 +187,7 @@ editor_rule_list = [
|
||||
HasNote,
|
||||
HasNoteRegexp,
|
||||
RegExpIdOf,
|
||||
RegExpName,
|
||||
Disconnected,
|
||||
ChangedSince,
|
||||
IsRelatedWith,
|
||||
|
@ -80,6 +80,8 @@ class IsLessThanNthGenerationAncestorOfBookmarked(Rule):
|
||||
|
||||
p = self.db.get_person_from_handle(handle)
|
||||
fam_id = p.get_main_parents_family_handle()
|
||||
if not fam_id:
|
||||
return
|
||||
fam = self.db.get_family_from_handle(fam_id)
|
||||
if fam:
|
||||
f_id = fam.get_father_handle()
|
||||
|
@ -73,6 +73,8 @@ class IsLessThanNthGenerationAncestorOfDefaultPerson(Rule):
|
||||
|
||||
p = self.db.get_person_from_handle(handle)
|
||||
fam_id = p.get_main_parents_family_handle()
|
||||
if not fam_id:
|
||||
return
|
||||
fam = self.db.get_family_from_handle(fam_id)
|
||||
if fam:
|
||||
f_id = fam.get_father_handle()
|
||||
|
Loading…
Reference in New Issue
Block a user