From 2211fe947f5d7a1c21a88d9b77849f2b31897d26 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sat, 28 May 2016 21:53:40 +0200 Subject: [PATCH] 9474: [Geography] Geoclose and mother handle --- gramps/plugins/view/geoclose.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/view/geoclose.py b/gramps/plugins/view/geoclose.py index 8c6ec02c9..527f02d2f 100644 --- a/gramps/plugins/view/geoclose.py +++ b/gramps/plugins/view/geoclose.py @@ -441,9 +441,10 @@ class GeoClose(GeoGraphyView): if father: descr1 = "%s - " % _nd.display(father) handle = fam.get_mother_handle() - mother = dbstate.db.get_person_from_handle(handle) - if mother: - descr1 = "%s%s" % (descr1, _nd.display(mother)) + if handle: + mother = dbstate.db.get_person_from_handle(handle) + if mother: + descr1 = "%s%s" % (descr1, _nd.display(mother)) for event_ref in family.get_event_ref_list(): if event_ref: event = dbstate.db.get_event_from_handle(