mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
Merge pull request #1087 from KennyDizi/main
Fix exception handling and remove unused import in Bitbucket server provider
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
import json
|
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
from urllib.parse import quote_plus, urlparse
|
from urllib.parse import quote_plus, urlparse
|
||||||
|
|
||||||
@ -126,7 +125,7 @@ class BitbucketServerProvider(GitProvider):
|
|||||||
self.repo_slug,
|
self.repo_slug,
|
||||||
path,
|
path,
|
||||||
commit_id)
|
commit_id)
|
||||||
except requests.HTTPError as e:
|
except HTTPError as e:
|
||||||
get_logger().debug(f"File {path} not found at commit id: {commit_id}")
|
get_logger().debug(f"File {path} not found at commit id: {commit_id}")
|
||||||
return file_content
|
return file_content
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user