diff --git a/src/rules/team/rank.py b/src/rules/team/rank.py index 41f712d..ebfae74 100644 --- a/src/rules/team/rank.py +++ b/src/rules/team/rank.py @@ -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