Skip to content

Commit

Permalink
Fix exception when finding relationship to home person
Browse files Browse the repository at this point in the history
Proposed bug fix to catch the reported exception by testing for None.
However, it's not a guaranteed fix because no data was provided to
test the bug.

Question remains what is the family tree that leads to that situation?
Is it a valid case? Should it be handled in a certain way that isn't
being done now? If it isn't valid, is it being captured by check and
repair database?

Fixes #13495
  • Loading branch information
hgohel authored and Nick-Hall committed Jan 12, 2025
1 parent 2a92670 commit 482673d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/plugins/quickview/all_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def print_details_path(
for val in fam[1:]:
# TODO for Arabic, should the next comma be translated?
famstr += ", " + str(val + 1)
else:
elif fam is not None:
famstr = str(fam + 1)
sdoc.paragraph(_FMT_DET2 % (" ", par_str, birth_str, famstr))
counter = ""
Expand Down

0 comments on commit 482673d

Please sign in to comment.