File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 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):
3737
3838# Return item title for sorting
3939def 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 )
4143
4244# Return item URL for sorting
4345def 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):
3737
3838# Return item title for sorting
3939def 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 )
4143
4244# Return item URL for sorting
4345def item_url (mapping : Mapping ):
You can’t perform that action at this time.
0 commit comments