From c4fac4aad844c7d22bc690438098a1e9eebe44fd Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 3 Mar 2016 16:50:29 -0600 Subject: [PATCH] 9288: Error still when creating a Narrative Website Report --- gramps/plugins/webreport/narrativeweb.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index bb52147f4..2f972e8ba 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -5435,8 +5435,14 @@ class PersonPages(BasePage): family = self.dbase_.get_family_from_handle(parent_handle) father_handle = family.get_father_handle() mother_handle = family.get_mother_handle() - father = self.dbase_.get_person_from_handle(father_handle) - mother = self.dbase_.get_person_from_handle(mother_handle) + if father_handle: + father = self.dbase_.get_person_from_handle(father_handle) + else: + father = None + if mother_handle: + mother = self.dbase_.get_person_from_handle(mother_handle) + else: + mother = None if father: father_name = self.get_name(father) if mother: