Fix TypeError
This commit is contained in:
1 parent
1dec673841
commit
5e19fd757c
1 file changed
+3
@@ -156,6 +156,9 @@ def make_final_video(
|
||||
|
||||
# Gather all audio clips
|
||||
audio_clips = list()
|
||||
if number_of_clips == 0:
|
||||
print("No audio clips to gather. Please use a different TTS or post.") # This is to fix the TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
|
||||
exit()
|
||||
if settings.config["settings"]["storymode"]:
|
||||
if settings.config["settings"]["storymodemethod"] == 0:
|
||||
audio_clips = [ffmpeg.input(f"assets/temp/{reddit_id}/mp3/title.mp3")]
|
||||
|
||||
Reference in new issue
Block a user