From b8f9fb685325ff66aa8d69bf92b632bcaed3e9ba Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Wed, 3 Jan 2018 20:01:12 -0600 Subject: [PATCH] check_source: load target project config during check_action_delete(). Otherwise, causes fatal crash trying to access self.repo_checker. --- check_source.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_source.py b/check_source.py index 0f1d943e..fbd69702 100755 --- a/check_source.py +++ b/check_source.py @@ -218,6 +218,8 @@ class CheckSource(ReviewBot.ReviewBot): return False def check_action_delete(self, request, action): + self.target_project_config(action.tgt_project) + if action.tgt_repository is not None: if action.tgt_project.startswith('openSUSE:'): self.review_messages['declined'] = 'The repositories in the openSUSE:* namespace ' \