formatting

This commit is contained in:
0xArty
2023-04-14 20:42:28 +01:00
parent a0e3c238a4
commit 328ba5e69e
40 changed files with 911 additions and 592 deletions

View File

@@ -2,7 +2,7 @@ import yaml
from colorama import Fore
def clean_input(prompt: str=''):
def clean_input(prompt: str = ""):
try:
return input(prompt)
except KeyboardInterrupt:
@@ -18,6 +18,9 @@ def validate_yaml_file(file: str):
except FileNotFoundError:
return (False, f"The file {Fore.CYAN}`{file}`{Fore.RESET} wasn't found")
except yaml.YAMLError as e:
return (False, f"There was an issue while trying to read with your AI Settings file: {e}")
return (
False,
f"There was an issue while trying to read with your AI Settings file: {e}",
)
return (True, f"Successfully validated {Fore.CYAN}`{file}`{Fore.RESET}!")