From c7eb70d00dbaa926445a0b85b592e61747bc83e0 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Tue, 5 Mar 2024 20:11:39 +0200 Subject: [PATCH] protections --- pr_agent/tools/pr_code_suggestions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index 2cb06ccd..51dbe130 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -184,7 +184,6 @@ class PRCodeSuggestions: suggestion_list = [] one_sentence_summary_list = [] for i, suggestion in enumerate(data['code_suggestions']): - continue if get_settings().pr_code_suggestions.summarize: if not suggestion or 'one_sentence_summary' not in suggestion or 'label' not in suggestion or 'relevant_file' not in suggestion: get_logger().debug(f"Skipping suggestion {i + 1}, because it is invalid: {suggestion}")