From cbc7823ef2a1a6556502b19987884c8084d78b20 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 27 Dec 2003 21:56:38 +0000 Subject: [PATCH] * src/plugins/FamilyGroup.py (FamilyGroup.dump_child): handle missing spouse svn: r2558 --- src/plugins/FamilyGroup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/FamilyGroup.py b/src/plugins/FamilyGroup.py index b00cbdf22..bc7bb3c98 100644 --- a/src/plugins/FamilyGroup.py +++ b/src/plugins/FamilyGroup.py @@ -294,7 +294,8 @@ class FamilyGroup: self.doc.end_cell() self.doc.start_cell('FGR-TextContentsEnd',2) self.doc.start_paragraph('FGR-Normal') - self.doc.write_text(spouse.getPrimaryName().getRegularName()) + if spouse: + self.doc.write_text(spouse.getPrimaryName().getRegularName()) self.doc.end_paragraph() self.doc.end_cell() self.doc.end_row()