diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index fa52b7dc05..3abadae9f3 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -475,8 +475,8 @@ def _publish_inline_comments_fallback_with_verification(self, comments: list[dic if verified_comments: try: self.pr.create_review(commit=self.last_commit_id, comments=verified_comments) - except: - pass + except Exception: + raise # try to publish one by one the invalid comments as a one-line code comment if invalid_comments and get_settings().github.try_fix_invalid_inline_comments: