Allow for a family to not have a listed spouse.

svn: r95
This commit is contained in:
Don Allingham 2001-06-07 15:00:04 +00:00
parent 88ff9fd74f
commit e4bc9f3c37

View File

@ -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()