diff --git a/slpkg/downloader.py b/slpkg/downloader.py index d5747ada..733e38ed 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -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")