From 18736d282f26e1476bdd720472670e5a072e1011 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 10 Feb 2020 09:47:10 +0100 Subject: [PATCH] [FIX] runbot_merge: incorrect deref' in controller, pr is the dict of the PR coming from github, pr_obj is the odoo-level PR object (if any) --- runbot_merge/controllers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/controllers/__init__.py b/runbot_merge/controllers/__init__.py index d17c12b5..8998fcf9 100644 --- a/runbot_merge/controllers/__init__.py +++ b/runbot_merge/controllers/__init__.py @@ -154,7 +154,7 @@ def handle_pr(env, event): return 'No update to pr head' if pr_obj.state in ('closed', 'merged'): - _logger.error("Tentative sync to closed PR %s", pr.display_name) + _logger.error("Tentative sync to closed PR %s", pr_obj.display_name) return "It's my understanding that closed/merged PRs don't get sync'd" if pr_obj.state == 'ready':