From aef9a04b32adbf9a21b51ed74d5b704308a84466 Mon Sep 17 00:00:00 2001 From: KennyDizi Date: Fri, 2 Aug 2024 07:58:23 +0700 Subject: [PATCH] Fix use requests HTTPError --- pr_agent/git_providers/bitbucket_server_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/bitbucket_server_provider.py b/pr_agent/git_providers/bitbucket_server_provider.py index b3fa5647f..6c56ef84a 100644 --- a/pr_agent/git_providers/bitbucket_server_provider.py +++ b/pr_agent/git_providers/bitbucket_server_provider.py @@ -125,7 +125,7 @@ def get_file(self, path: str, commit_id: str): self.repo_slug, path, commit_id) - except requests.HTTPError as e: + except HTTPError as e: get_logger().debug(f"File {path} not found at commit id: {commit_id}") return file_content