Skip to content

Commit

Permalink
fix: skip processing comments without a body in GitHub polling server
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Aug 25, 2024
1 parent ce15675 commit b9d0961
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pr_agent/servers/github_polling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit b9d0961

Please sign in to comment.