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 committed Sep 25, 2023
1 parent 238d3b3 commit 3ea5258
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 3ea5258

Please sign in to comment.