mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 03:15:17 +00:00
fix: Revert back to exception since context.get will not throw KeyError
This commit is contained in:
parent
26dc2e9d21
commit
b62e0967d5
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class BitbucketServerProvider(GitProvider):
|
|||
try:
|
||||
bearer = context.get("bitbucket_bearer_token", None)
|
||||
s.headers["Authorization"] = f"Bearer {bearer}"
|
||||
except KeyError:
|
||||
except Exception:
|
||||
s.headers[
|
||||
"Authorization"
|
||||
] = f'Bearer {get_settings().get("BITBUCKET.BEARER_TOKEN", None)}'
|
||||
|
|
|
|||
Loading…
Reference in a new issue