Fix HandleError on IsLessThanNthGenerationAncestorOf filters

Fixes #10286
This commit is contained in:
prculley 2017-11-25 14:53:42 -06:00 committed by Nick Hall
parent b9b06f1668
commit 33ebd5d0b0
3 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,7 @@ editor_rule_list = [
HasNote,
HasNoteRegexp,
RegExpIdOf,
RegExpName,
Disconnected,
ChangedSince,
IsRelatedWith,

View File

@ -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()

View File

@ -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()