Updated for status exit

This commit is contained in:
Dimitris Zlatanidis 2023-04-30 21:43:12 +03:00
parent 7e125ecc1b
commit ee06001fad

View file

@ -57,7 +57,7 @@ class Downloader(Configs):
shutil.copy2(Path(url.replace('file:', '')), self.tmp_slpkg) shutil.copy2(Path(url.replace('file:', '')), self.tmp_slpkg)
print(f"{self.byellow}Copying{self.endc}: {Path(url.replace('file:', ''))} -> {self.tmp_slpkg}") print(f"{self.byellow}Copying{self.endc}: {Path(url.replace('file:', ''))} -> {self.tmp_slpkg}")
except FileNotFoundError as error: except FileNotFoundError as error:
self.errors.raise_error_message(f'{error}', 20) self.errors.raise_error_message(f'{error}', 1)
else: else:
if self.downloader in ['wget', 'wget2']: if self.downloader in ['wget', 'wget2']: