You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RedditVideoMakerBot/utils/validate.py

20 lines
525 B

import sys
from typing import NoReturn
from utils import settings
from utils.console import print_substep
def validat_env(obj) -> NoReturn | None:
"""
check for wrong
"""
if (
settings.config["settings"]["tts"]["tiktok_sessionid"] == ""
and settings.config["settings"]["tts"]["voice_choice"] == "tiktok"
):
print_substep(
"TikTok voice requires a sessionid! Check our documentation on how to obtain one.",
"bold red",
)
sys.exit()