diff --git a/search_in_youtube_video_comments.py b/search_in_youtube_video_comments.py index cb7db2b..fc8c540 100755 --- a/search_in_youtube_video_comments.py +++ b/search_in_youtube_video_comments.py @@ -44,6 +44,7 @@ while True: break commentsNextPageToken = commentsData['nextPageToken'] else: + # This condition is to manage properly `item`s without `replies` entry. if totalReplyCount > 0: for comment in item['replies']['comments']: treatComment(comment)