From 1b60193f771fd337b6dcae9180946ee61ab44bc6 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sat, 29 Sep 2018 19:20:50 +0200 Subject: [PATCH] Geoclose: exception when a family has no father (#662) --- gramps/plugins/view/geoclose.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/view/geoclose.py b/gramps/plugins/view/geoclose.py index f831a9c01..47aeba8ed 100644 --- a/gramps/plugins/view/geoclose.py +++ b/gramps/plugins/view/geoclose.py @@ -439,9 +439,11 @@ class GeoClose(GeoGraphyView): fhandle = family_list[0] # first is primary fam = dbstate.db.get_family_from_handle(fhandle) handle = fam.get_father_handle() - father = dbstate.db.get_person_from_handle(handle) - if father: - descr1 = "%s - " % _nd.display(father) + descr1 = " - " + if handle: + father = dbstate.db.get_person_from_handle(handle) + if father: + descr1 = "%s - " % _nd.display(father) handle = fam.get_mother_handle() if handle: mother = dbstate.db.get_person_from_handle(handle)