From e4bc9f3c37ecbd817945432359ceb0a9d1fce718 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 7 Jun 2001 15:00:04 +0000 Subject: [PATCH] Allow for a family to not have a listed spouse. svn: r95 --- gramps/src/plugins/IndivSummary.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/src/plugins/IndivSummary.py b/gramps/src/plugins/IndivSummary.py index 7c4c3b90b..22be06f1a 100644 --- a/gramps/src/plugins/IndivSummary.py +++ b/gramps/src/plugins/IndivSummary.py @@ -165,7 +165,10 @@ class IndivSummary: self.d.start_row() self.d.start_cell("NormalCell",2) self.d.start_paragraph("Spouse") - self.d.write_text(spouse.getPrimaryName().getRegularName()) + if spouse: + self.d.write_text(spouse.getPrimaryName().getRegularName()) + else: + self.d.write_text(_("unknown")) self.d.end_paragraph() self.d.end_cell() self.d.end_row()