diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index 0ae17a5a..0b87a899 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -1278,7 +1278,7 @@ class Stagings(models.Model): commit = self.env['runbot_merge.commit'].search([ ('sha', '=', head) ]) - statuses = json.loads(commit.statuses) + statuses = json.loads(commit.statuses or '{}') reason = next(( ctx for ctx, result in statuses.items() if to_status(result).get('state') in ('error', 'failure')