Fix a bug that occurs only when there are no tickets outside milestones

in a view.

Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Emma Hopwood 2023-10-11 17:54:37 +01:00
parent dfb7c73487
commit 705c51e20e
1 changed files with 2 additions and 1 deletions

View File

@ -342,7 +342,8 @@ def main():
milestones = {n.milestone: [] for n in dg}
for m in milestones:
milestones[m] = [n for n in dg if n.milestone == m]
del milestones[None]
if None in milestones:
del milestones[None]
for (milestone, nodes) in milestones.items():
ag.add_subgraph(nodes, 'cluster_%d' % clusters, label=milestone, color='blue')
clusters += 1