From 7eb8ace07eab80481037663be2ecc886db70a117 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Jun 2022 16:06:59 -0400 Subject: [PATCH] fixed file not found error --- TTS/TikTok.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TTS/TikTok.py b/TTS/TikTok.py index 2024ec9..8ed9f8e 100644 --- a/TTS/TikTok.py +++ b/TTS/TikTok.py @@ -125,8 +125,7 @@ class TikTok: # TikTok Text-to-Speech Wrapper cbn.build(audio_clips, filename, "concatenate") else: os.rename(audio_clips[0], filename) - - except sox.core.SoxError: # https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/67#issuecomment-1150466339 + except (sox.core.SoxError, FileNotFoundError): # https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/67#issuecomment-1150466339 for clip in audio_clips: i = audio_clips.index(clip) # get the index of the clip audio_clips = (