Add a comment about if totalReplyCount > 0
condition
This commit is contained in:
parent
0dc0cc45fc
commit
97750eb498
@ -44,6 +44,7 @@ while True:
|
|||||||
break
|
break
|
||||||
commentsNextPageToken = commentsData['nextPageToken']
|
commentsNextPageToken = commentsData['nextPageToken']
|
||||||
else:
|
else:
|
||||||
|
# This condition is to manage properly `item`s without `replies` entry.
|
||||||
if totalReplyCount > 0:
|
if totalReplyCount > 0:
|
||||||
for comment in item['replies']['comments']:
|
for comment in item['replies']['comments']:
|
||||||
treatComment(comment)
|
treatComment(comment)
|
||||||
|
Reference in New Issue
Block a user