Fix for path at background.py and added TikTok error message just in case

pull/1423/head
Simon 2 years ago
parent ee6363cd1e
commit 8e5b7a935d

@ -108,7 +108,11 @@ class TikTok:
raise TikTokTTSException(status_code, data["message"])
# decode data from base64 to binary
try:
raw_voices = data["data"]["v_str"]
except:
print("The TikTok TTS returned an invalid response. Please try again later, and report this bug.")
raise TikTokTTSException(0, "Invalid response")
decoded_voices = base64.b64decode(raw_voices)
# write voices to specified filepath

@ -13,7 +13,7 @@ from utils import settings
from utils.console import print_step, print_substep
# Load background videos
with open("utils/backgrounds.json") as json_file:
with open("./utils/backgrounds.json") as json_file:
background_options = json.load(json_file)
# Remove "__comment" from backgrounds

Loading…
Cancel
Save