Skip to content

Commit

Permalink
Handle None date
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Oct 25, 2024
1 parent 67622d8 commit 95f6b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/team/fixversion_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class FixVersionBlock(Block):
def yield_issues(self):
"""Within the fixversion block, issues get sorted by due date"""
duedate_field_id = self.issues[0].raw["Context"]["Field Ids"]["Due Date"]
duedate = lambda issue: getattr(issue.fields, duedate_field_id)
duedate = lambda issue: getattr(issue.fields, duedate_field_id) or "9999-99-99"
yield from sorted(self.issues, key=duedate)

@property
Expand Down

0 comments on commit 95f6b43

Please sign in to comment.