mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
Add exception handling for applying repo settings failure
This commit is contained in:
parent
b99c769b53
commit
fe3527de3c
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ def apply_repo_settings(pr_url):
|
|||
get_settings().unset(section)
|
||||
get_settings().set(section, section_dict, merge=False)
|
||||
get_logger().info(f"Applying repo settings for section {section}, contents: {contents}")
|
||||
|
||||
except Exception as e:
|
||||
get_logger().exception("Failed to apply repo settings", e)
|
||||
finally:
|
||||
if repo_settings_file:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue