mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
code suggestion
This commit is contained in:
parent
f0fe06aeca
commit
26e02a436e
1 changed files with 3 additions and 1 deletions
|
|
@ -43,11 +43,13 @@ def apply_repo_settings(pr_url):
|
|||
merge_enabled=False, # Don't allow merging from other sources
|
||||
)
|
||||
except TypeError:
|
||||
import traceback
|
||||
# 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.")
|
||||
"Please upgrade Dynaconf for better security.",
|
||||
artifact={"error": e, "traceback": traceback.format_exc()})
|
||||
new_settings = Dynaconf(settings_files=[repo_settings_file])
|
||||
|
||||
for section, contents in new_settings.as_dict().items():
|
||||
|
|
|
|||
Loading…
Reference in a new issue