From 3ea5258ce91b7f82fc2bc5500be2c11768c1747a Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 25 Sep 2023 11:48:40 +0200 Subject: [PATCH] not enough values to unpack in sort_by_role This error occurs in the narrative web when you have a dash in the role name. Fixes #13042 --- gramps/plugins/webreport/basepage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/basepage.py b/gramps/plugins/webreport/basepage.py index d9f2198200d..843aa631f93 100644 --- a/gramps/plugins/webreport/basepage.py +++ b/gramps/plugins/webreport/basepage.py @@ -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: