aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/models/track.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py
index 8025f6a..a78e56a 100644
--- a/fietsboek/models/track.py
+++ b/fietsboek/models/track.py
@@ -613,7 +613,7 @@ class TrackWithMetadata:
:return: The generated HTML.
"""
people = [self.owner] + list(self.tagged_people)
- people.sort(key=lambda p: p.name)
+ people.sort(key=lambda p: p.name or "")
html_list = "".join(Markup("<li>{}</li>").format(person.name) for person in people)
return Markup("<ul class=&quot;mb-0&quot;>{}</ul>").format(html_list)