Skip to content

Commit

Permalink
Merge pull request #1087 from KennyDizi/main
Browse files Browse the repository at this point in the history
Fix exception handling and remove unused import in Bitbucket server provider
  • Loading branch information
mrT23 authored Aug 3, 2024
2 parents 3756b54 + aef9a04 commit 85cc0ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pr_agent/git_providers/bitbucket_server_provider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from typing import Optional, Tuple
from urllib.parse import quote_plus, urlparse

Expand Down Expand Up @@ -126,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

Expand Down

0 comments on commit 85cc0ad

Please sign in to comment.