diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 16a5b7012..05cc5768e 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -1550,8 +1550,7 @@ def CheckOwnersFormat(input_api, output_api): return [ output_api.PresubmitError( - f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. ' - 'Ask your host enable it on your gerrit ' + 'code-owners is not enabled. Ask your host enable it on your gerrit ' 'host. Read more about code-owners at ' 'https://chromium-review.googlesource.com/' 'plugins/code-owners/Documentation/index.html.') @@ -1571,8 +1570,7 @@ def CheckOwners(input_api, output_api, source_file_filter=None, allow_tbr=True): return [ output_api.PresubmitError( - f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. ' - 'Ask your host enable it on your gerrit ' + 'code-owners is not enabled. Ask your host enable it on your gerrit ' 'host. Read more about code-owners at ' 'https://chromium-review.googlesource.com/' 'plugins/code-owners/Documentation/index.html.')