diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index e5f8360a..d92a81e5 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -113,7 +113,7 @@ class Runbot(http.Controller): def branch_info(branch): return { 'branch': branch, - 'builds': [self.build_info(build_dict[build_id]) for build_id in build_by_branch_ids[branch.id]] + 'builds': [self.build_info(build_dict[build_id]) for build_id in build_by_branch_ids.get(branch.id) or []] } context.update({ diff --git a/runbot/templates/frontend.xml b/runbot/templates/frontend.xml index 1c50219e..bf5e0256 100644 --- a/runbot/templates/frontend.xml +++ b/runbot/templates/frontend.xml @@ -120,7 +120,7 @@ -
+