mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for code style
This commit is contained in:
parent
d57971cb4b
commit
d79ccd6c81
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue