diff --git a/slpkg/choose_packages.py b/slpkg/choose_packages.py index 10d36470..ea76db04 100644 --- a/slpkg/choose_packages.py +++ b/slpkg/choose_packages.py @@ -44,7 +44,7 @@ class Choose(Configs): self.list_height, self.choices) if code == 'cancel' or not packages: os.system('clear') - raise SystemExit() + raise SystemExit(0) os.system('clear') diff --git a/slpkg/views/help_commands.py b/slpkg/views/help_commands.py index b4063a8c..c5331a9c 100644 --- a/slpkg/views/help_commands.py +++ b/slpkg/views/help_commands.py @@ -67,4 +67,4 @@ class Help(Configs): print(f"{self.bold}COMMAND{self.endc}: {self.cyan}{self.command}{self.endc}") print(f"{self.bold}OPTIONS:{self.endc} {self.yellow}{', '.join(self.flags)}{self.endc}\n") print('If you need more information try to use slpkg manpage.\n') - raise SystemExit() + raise SystemExit(0) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 25a25b0f..05237d2d 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -238,5 +238,5 @@ class View(Configs): if not self.option_for_yes and self.ask_question: answer: str = input('\nDo you want to continue? [y/N] ') if answer not in ['Y', 'y']: - raise SystemExit() + raise SystemExit(0) print()