diff --git a/bot/code_review_bot/report/phabricator.py b/bot/code_review_bot/report/phabricator.py index a1cdb2faf..0ddc98bf4 100644 --- a/bot/code_review_bot/report/phabricator.py +++ b/bot/code_review_bot/report/phabricator.py @@ -171,6 +171,12 @@ def publish(self, issues, revision, task_failures, notices, reviewers): ) return + if not hasattr(self, "api"): + logger.warning( + "Phabricator API is not set: you need to configure credentials" + ) + return + # Add extra reviewers groups to the revision if reviewers: phids = []