Skip to content

Commit

Permalink
Handle case of empty blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Apr 26, 2024
1 parent 168e36f commit fe69568
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/team/rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def _sort_by_project_rank(self):
Blocks are switch around, but a block can only be switched
with a block of the same parent project.
"""
if not self.blocks:
return
rank_field_id = self.blocks[0].issues[0].raw["Context"]["Field Ids"]["Rank"]

# For each project, generate a ranked list of issues
Expand Down

0 comments on commit fe69568

Please sign in to comment.