From af8a5b8e8e41f3a2dbd4a6d18de83d6d0b8b788e Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 7 Jul 2022 11:10:42 +0200 Subject: [PATCH] [FIX] runbot: avoid error when there is no build --- runbot/controllers/frontend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index 6954afd7..4f3ef3fe 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -495,6 +495,8 @@ class Runbot(Controller): limit -= len(builds) builds |= builds.search(builds_domain, order='id desc', limit=limit) + if not builds: + return {} builds = builds.search([('id', 'child_of', builds.ids)])