avoid thread with zero comments as perhaps the reason to #376

pull/280/head
iaacornus 3 years ago
parent 6d128a79fb
commit c45a2262b3
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -100,6 +100,11 @@ def get_subreddit_threads(subreddit_, thread_link_, number_of_comments):
except FileNotFoundError:
break
if len(submission.comments) == 0:
print_substep(
"The thread do not contain any comments. Searching for new one.", style_="bold"
)
print_substep(f"Video will be: [cyan]{submission.title}[/cyan] :thumbsup:")
try:

Loading…
Cancel
Save