diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index d6014192e..668df68fc 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -2037,7 +2037,7 @@ class IndividualPage(BasePage): self.person_link(of, url, _nd.display(person), gid) else: of.write(_nd.display(person)) - if rel != gen.lib.ChildRefType.BIRTH: + if rel and rel != gen.lib.ChildRefType.BIRTH: of.write(' (%s)' % str(rel)) of.write('\n') @@ -2058,15 +2058,15 @@ class IndividualPage(BasePage): family = db.get_family_from_handle(family_handle) # Get the mother and father relationships - frel = "" - mrel = "" + frel = None + mrel = None sibling = set() child_handle = self.person.get_handle() child_ref_list = family.get_child_ref_list() for child_ref in child_ref_list: if child_ref.ref == child_handle: - frel = str(child_ref.get_father_relation()) - mrel = str(child_ref.get_mother_relation()) + frel = child_ref.get_father_relation() + mrel = child_ref.get_mother_relation() if not first: of.write('\t\t\t