mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 19:35:17 +00:00
Merge pull request #489 from Codium-ai/ok/gh_actions_fix
Improve error handling in settings retrieval
This commit is contained in:
commit
c57807e53a
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def get_setting_or_env(key: str, default: Union[str, bool] = None) -> Union[str,
|
|||
try:
|
||||
value = get_settings().get(key, default)
|
||||
except AttributeError: # TBD still need to debug why this happens on GitHub Actions
|
||||
value = os.getenv(key, None) or os.getenv(key.upper(), None) or os.getenv(key.lower(), None)
|
||||
value = os.getenv(key, None) or os.getenv(key.upper(), None) or os.getenv(key.lower(), None) or default
|
||||
return value
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue