Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pr_agent/servers/bitbucket_server_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,12 @@ def _to_list(command_string: str) -> list:
raise ValueError(f"Invalid command string: {e}")


def _get_commands_list_from_settings(setting_key:str ) -> list:
def _get_commands_list_from_settings(setting_key: str) -> list:
try:
return get_settings().get(setting_key, [])
except ValueError as e:
get_logger().error(f"Failed to get commands list from settings {setting_key}: {e}")
return []


@router.get("/")
Expand Down