mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Add warning in case of exception of failed Dynaconf init
This commit is contained in:
parent
6bfde3beab
commit
b0f3d05a3e
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ def apply_repo_settings(pr_url):
|
|||
)
|
||||
except TypeError:
|
||||
# Fallback for older Dynaconf versions that don't support these parameters
|
||||
get_logger().warning(
|
||||
"Your Dynaconf version does not support disabled 'load_dotenv'/'merge_enabled' parameters. "
|
||||
"Loading repo settings without these security features. "
|
||||
"Please upgrade Dynaconf for better security.")
|
||||
new_settings = Dynaconf(settings_files=[repo_settings_file])
|
||||
|
||||
for section, contents in new_settings.as_dict().items():
|
||||
|
|
|
|||
Loading…
Reference in a new issue