Fixed stderr error output

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-12 19:22:25 +03:00
parent b2ae4748fe
commit ba8193b90a
3 changed files with 4 additions and 5 deletions

View file

@ -61,8 +61,7 @@ class Auto:
try: try:
self.choice = input(" > ") self.choice = input(" > ")
except EOFError: except EOFError:
print() raise SystemExit("\n")
raise SystemExit()
if self.choice in self.commands.keys(): if self.choice in self.commands.keys():
print(f" \x1b[1A{self.cyan}{self.commands[self.choice]}" print(f" \x1b[1A{self.cyan}{self.commands[self.choice]}"
f"{self.endc}", end="\n\n") f"{self.endc}", end="\n\n")

View file

@ -43,8 +43,8 @@ class DialogUtil:
def imp_dialog(self): def imp_dialog(self):
try: try:
from dialog import Dialog from dialog import Dialog
except ImportError: except ImportError as er:
raise SystemExit() raise SystemExit(er)
self.d = Dialog(dialog="dialog", autowidgetsize=True) self.d = Dialog(dialog="dialog", autowidgetsize=True)
def checklist(self): def checklist(self):

View file

@ -53,6 +53,6 @@ def choose_upg(packages):
if name in packages: if name in packages:
selected_packages.append(name) selected_packages.append(name)
if not selected_packages: if not selected_packages:
raise SystemExit() raise SystemExit(1)
print() print()
return selected_packages return selected_packages