Add a comment about if totalReplyCount > 0
condition
This commit is contained in:
parent
0dc0cc45fc
commit
97750eb498
@ -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)
|
||||
|
Reference in New Issue
Block a user