* src/WriteGedcom.py: fix adopted relationship generation

svn: r4515
This commit is contained in:
Don Allingham
2005-05-09 03:55:09 +00:00
parent 0ec4626803
commit aa56da2c05
4 changed files with 19 additions and 8 deletions

View File

@@ -487,7 +487,10 @@ class CheckIntegrity:
else:
cn = _("Non existing person")
family = self.db.get_family_from_handle(family_handle)
pn = Utils.family_name(family,self.db)
if family:
pn = Utils.family_name(family,self.db)
else:
pn = family_handle
self.text.write('\t')
self.text.write(_("%s was restored to the family of %s\n") % (cn,pn))