Skip to content

Commit 56b2b89

Browse files
committed
chore(readme): safely handle None values for artifact_id during sorting
1 parent 1891582 commit 56b2b89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate-readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, repo: dict):
4242
def __lt__(self, other):
4343
if self.release_level == other.release_level:
4444
if self.title == other.title:
45-
return self.artifact_id < other.artifact_id
45+
return (self.artifact_id or "") < (other.artifact_id or "")
4646
return self.title < other.title
4747

4848
return other.release_level < self.release_level

0 commit comments

Comments
 (0)