diff --git a/pr_agent/servers/github_polling.py b/pr_agent/servers/github_polling.py index 52c00552d..64f4dea9d 100644 --- a/pr_agent/servers/github_polling.py +++ b/pr_agent/servers/github_polling.py @@ -93,7 +93,9 @@ async def polling_loop(): if 'user' in comment and 'login' in comment['user']: if comment['user']['login'] == user_id: continue - comment_body = comment['body'] if 'body' in comment else '' + comment_body = comment.get('body', '') + if not comment_body: + continue commenter_github_user = comment['user']['login'] \ if 'user' in comment else '' get_logger().info(f"Polling, pr_url: {pr_url}",