Skip to content

Commit

Permalink
Narweb: Person object has no get_father_handle
Browse files Browse the repository at this point in the history
Fixes #13207
  • Loading branch information
SNoiraud committed Apr 3, 2024
1 parent 445223c commit 8bbda41
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gramps/plugins/webreport/narrativeweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,12 @@ def get_family_name(self, family):
"""
self.rlocale = self.set_locale(self.the_lang)
self._ = self.rlocale.translation.sgettext
husband_handle = family.get_father_handle()
spouse_handle = family.get_mother_handle()
if isinstance(family, Family):
husband_handle = family.get_father_handle()
spouse_handle = family.get_mother_handle()
else:
# B13207
husband_handle = spouse_handle = None

if husband_handle:
husband = self._db.get_person_from_handle(husband_handle)
Expand Down

0 comments on commit 8bbda41

Please sign in to comment.