geofamily crashes if a family has no father (#1188)
This commit is contained in:
parent
1d72f4b23d
commit
eb4ce9ff79
@ -370,8 +370,9 @@ class GeoFamily(GeoGraphyView):
|
|||||||
_("Family places for %s") % self.family_label(family))
|
_("Family places for %s") % self.family_label(family))
|
||||||
person = None
|
person = None
|
||||||
if family:
|
if family:
|
||||||
person = dbstate.db.get_person_from_handle(
|
handle = family.get_father_handle()
|
||||||
family.get_father_handle())
|
if handle:
|
||||||
|
person = dbstate.db.get_person_from_handle(handle)
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
family_id = family.gramps_id
|
family_id = family.gramps_id
|
||||||
|
Loading…
Reference in New Issue
Block a user