Merge pull request #1174 from Codium-ai/tr/protections2

Tr/protections2
This commit is contained in:
Tal 2024-08-25 08:13:29 +03:00 committed by GitHub
commit 2bbf4b366e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}",