From 1d9391dfc9c930b4bbb1dff62a8a385126ba0053 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 1 May 2015 19:42:42 -0700 Subject: [PATCH] cover two pathological place=None cases in family-group report --- gramps/plugins/textreport/familygroup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gramps/plugins/textreport/familygroup.py b/gramps/plugins/textreport/familygroup.py index b82270bb7..4d33694d2 100644 --- a/gramps/plugins/textreport/familygroup.py +++ b/gramps/plugins/textreport/familygroup.py @@ -114,6 +114,8 @@ class FamilyGroup(Report): if event: date = self._get_date(event.get_date_object()) place = place_displayer.display_event(self.database, event) + if place is None: + place = '' descr = event.get_description() if self.includeAttrs: @@ -405,6 +407,8 @@ class FamilyGroup(Report): place_handle = event.get_place_handle() if place_handle: place = place_displayer.display_event(self.database, event) + if place is None: + place = '' self.doc.start_row() self.doc.start_cell(text)