From 6d128a79fbcacd1e633bf312b9a48e80c2dc4655 Mon Sep 17 00:00:00 2001 From: iaacornus Date: Wed, 8 Jun 2022 12:10:08 +0800 Subject: [PATCH] used pass instead of break to avoid #380 --- video_creation/voices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video_creation/voices.py b/video_creation/voices.py index c22e9c5..7bb0213 100644 --- a/video_creation/voices.py +++ b/video_creation/voices.py @@ -39,7 +39,8 @@ def save_text_to_mp3(reddit_obj): # ! Stop creating mp3 files if the length is greater than 50 seconds. # ! This can be longer, but this is just a good starting point if length > 50: - break + pass + comment = comment["comment_body"] text = re.sub( "((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+"