Add exception handling for applying repo settings failure

This commit is contained in:
Ori Kotek
2023-11-03 12:23:49 +02:00
parent b99c769b53
commit fe3527de3c

View File

@ -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: