Code was placed in the wrong place

pull/274/head
Callum Leslie 3 years ago
parent 65afc5ccc1
commit 0dc32154f2

@ -30,6 +30,12 @@ for val in REQUIRED_VALUES:
print(f"Please set the variable \"{val}\" in your .env file.") print(f"Please set the variable \"{val}\" in your .env file.")
configured = False configured = False
try:
float(os.getenv("OPACITY"))
except:
print(f"Please ensure that OPACITY is set between 0 and 1 in your .env file")
configured = False
if configured: if configured:
reddit_object = get_subreddit_threads() reddit_object = get_subreddit_threads()
length, number_of_comments = save_text_to_mp3(reddit_object) length, number_of_comments = save_text_to_mp3(reddit_object)

@ -30,11 +30,7 @@ def make_final_video(number_of_clips):
.resize(height=H) .resize(height=H)
.crop(x1=1166.6, y1=0, x2=2246.6, y2=1920) .crop(x1=1166.6, y1=0, x2=2246.6, y2=1920)
) )
try:
float(os.getenv("OPACITY"))
except:
print(f"Please ensure that OPACITY is set between 0 and 1 in your .env file")
configured = False
# Gather all audio clips # Gather all audio clips
audio_clips = [] audio_clips = []
for i in range(0, number_of_clips): for i in range(0, number_of_clips):

Loading…
Cancel
Save