File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ def tag_name_casefold(tag: Tag, *args):
37
37
38
38
# Return item title for sorting
39
39
def item_title (mapping : Mapping ):
40
- return mapping .item .title
40
+ # Note that this must be coerced to a string, as the title might be sourced
41
+ # from metadata, which can be of any type - see https://t.ly/1AXyo
42
+ return str (mapping .item .title )
41
43
42
44
# Return item URL for sorting
43
45
def item_url (mapping : Mapping ):
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ def tag_name_casefold(tag: Tag, *args):
37
37
38
38
# Return item title for sorting
39
39
def item_title (mapping : Mapping ):
40
- return mapping .item .title
40
+ # Note that this must be coerced to a string, as the title might be sourced
41
+ # from metadata, which can be of any type - see https://t.ly/1AXyo
42
+ return str (mapping .item .title )
41
43
42
44
# Return item URL for sorting
43
45
def item_url (mapping : Mapping ):
You can’t perform that action at this time.
0 commit comments