Skip to content

Commit

Permalink
Not enough values to unpack in sort_by_role
Browse files Browse the repository at this point in the history
This error occurs in the narrative web when you have a dash in the role name.

Fixes #13042
  • Loading branch information
SNoiraud authored and Nick-Hall committed Feb 6, 2024
1 parent 962d338 commit 0ff1bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3523,7 +3523,7 @@ def sort_by_role(obj):
else:
if self.reference_sort:
role = obj[2] # name
elif len(obj[2].split("-")) > 1:
elif len(obj[2].split(":")) > 1:
dummy_cal, role = obj[2].split(":") # date in ISO format
# dummy_cal is the original calendar. remove it.
if len(role.split(" ")) == 2:
Expand Down

0 comments on commit 0ff1bb2

Please sign in to comment.