docs and fixes

This commit is contained in:
mrT23
2024-09-10 20:06:48 +03:00
parent 1451d82d6b
commit 09b0a04a47
5 changed files with 77 additions and 10 deletions

View File

@ -79,8 +79,8 @@ async def is_valid_notification(notification, headers, handled_ids, session, use
pr_url = notification['subject']['url']
latest_comment = notification['subject']['latest_comment_url']
if not latest_comment or not isinstance(latest_comment, str):
get_logger().debug(f"not latest_comment, but its ok")
# continue
get_logger().debug(f"no latest_comment")
return False, handled_ids
async with session.get(latest_comment, headers=headers) as comment_response:
check_prev_comments = False
if comment_response.status == 200: