Updated for code style

This commit is contained in:
Dimitris Zlatanidis 2023-03-02 23:34:42 +02:00
parent d57971cb4b
commit d79ccd6c81

View file

@ -80,9 +80,11 @@ class Downloader(Configs, Utilities):
def check_if_downloaded(self) -> None:
""" Checks if the file downloaded. """
if 'ponce' not in self.url:
url: str = unquote(self.url)
file: str = url.split('/')[-1]
path_file = Path(self.path, file)
if not path_file.exists():
raise SystemExit(f"\n{self.red}FAILED {self.output}:{self.endc} '{self.blue}{self.url}{self.endc}' "
f"to download.\n")