make librecords play nice with proxy DBs
This commit is contained in:
@ -243,7 +243,11 @@ def find_records(db, filter, top_size, callname,
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
father = db.get_person_from_handle(father_handle)
|
father = db.get_person_from_handle(father_handle)
|
||||||
|
if father is None:
|
||||||
|
continue
|
||||||
mother = db.get_person_from_handle(mother_handle)
|
mother = db.get_person_from_handle(mother_handle)
|
||||||
|
if mother is None:
|
||||||
|
continue
|
||||||
|
|
||||||
name = StyledText(trans_text("%(father)s and %(mother)s")) % {
|
name = StyledText(trans_text("%(father)s and %(mother)s")) % {
|
||||||
'father': _get_styled_primary_name(father, callname,
|
'father': _get_styled_primary_name(father, callname,
|
||||||
|
Reference in New Issue
Block a user