From 2bb5ae8c0dce18a17530e360261b69a81f68689d Mon Sep 17 00:00:00 2001 From: zmeir Date: Mon, 8 Jan 2024 13:05:10 +0200 Subject: [PATCH] Remove redundant condition (status 422 already means the same) --- pr_agent/git_providers/github_provider.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index 11354ce9..64d45f43 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -229,7 +229,6 @@ class GithubProvider(GitProvider): get_logger().error(f"Failed to publish inline comments, error: {e}") if ( getattr(e, "status", None) == 422 - and getattr(e, "data", {}).get("message", None) == "Unprocessable Entity" and get_settings().github.publish_inline_comments_fallback_with_verification ): pass # continue to try _publish_inline_comments_fallback_with_verification