Updated for color

This commit is contained in:
Dimitris Zlatanidis 2023-03-14 17:29:49 +02:00
parent e7c33a8f5e
commit 608e1f16b9

View file

@ -23,8 +23,8 @@ class Downloader(Configs, Utilities):
self.color = self.colour()
self.bold: str = self.color['bold']
self.cyan: str = self.color['cyan']
self.red: str = self.color['red']
self.blue: str = self.color['blue']
self.endc: str = self.color['endc']
self.byellow: str = f'{self.bold}{self.yellow}'
self.bred: str = f'{self.bold}{self.red}'
@ -76,5 +76,5 @@ class Downloader(Configs, Utilities):
path_file = Path(self.path, file)
if not path_file.exists():
raise SystemExit(f"\n{self.bred}FAILED {output}:{self.endc} '{self.blue}{url}{self.endc}' "
f"to download.\n")
raise SystemExit(f"\n{self.bred}FAILED {output}:{self.endc} Download the '{self.cyan}{file}{self.endc}' "
f"file.\n")