From 72c7aa4a411c95c555a11af6680b5cb0a8f09408 Mon Sep 17 00:00:00 2001 From: Bastien Abadie Date: Thu, 30 Jul 2026 16:04:45 +0200 Subject: [PATCH] Avoid crashing on misconfigured Phabricator API --- bot/code_review_bot/report/phabricator.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 = []