Geoclose: exception when a family has no father (#662)
This commit is contained in:
parent
e667431dd5
commit
1b60193f77
@ -439,6 +439,8 @@ class GeoClose(GeoGraphyView):
|
|||||||
fhandle = family_list[0] # first is primary
|
fhandle = family_list[0] # first is primary
|
||||||
fam = dbstate.db.get_family_from_handle(fhandle)
|
fam = dbstate.db.get_family_from_handle(fhandle)
|
||||||
handle = fam.get_father_handle()
|
handle = fam.get_father_handle()
|
||||||
|
descr1 = " - "
|
||||||
|
if handle:
|
||||||
father = dbstate.db.get_person_from_handle(handle)
|
father = dbstate.db.get_person_from_handle(handle)
|
||||||
if father:
|
if father:
|
||||||
descr1 = "%s - " % _nd.display(father)
|
descr1 = "%s - " % _nd.display(father)
|
||||||
|
Loading…
Reference in New Issue
Block a user