diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index db1492c6bb..32f8837200 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -561,7 +561,7 @@ def _prepare_pr_answer(self) -> Tuple[str, str, str, List[dict]]: if 'labels' in self.data and self.git_provider.is_supported("get_labels"): self.data.pop('labels') if not get_settings().pr_description.enable_pr_type: - self.data.pop('type') + self.data.pop('type', None) # Remove the 'PR Title' key from the dictionary ai_title = self.data.pop('title', self.vars["title"])