mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-20 10:26:44 +01:00
Fixed stderr error output
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
b2ae4748fe
commit
ba8193b90a
3 changed files with 4 additions and 5 deletions
|
@ -61,8 +61,7 @@ class Auto:
|
|||
try:
|
||||
self.choice = input(" > ")
|
||||
except EOFError:
|
||||
print()
|
||||
raise SystemExit()
|
||||
raise SystemExit("\n")
|
||||
if self.choice in self.commands.keys():
|
||||
print(f" \x1b[1A{self.cyan}{self.commands[self.choice]}"
|
||||
f"{self.endc}", end="\n\n")
|
||||
|
|
|
@ -43,8 +43,8 @@ class DialogUtil:
|
|||
def imp_dialog(self):
|
||||
try:
|
||||
from dialog import Dialog
|
||||
except ImportError:
|
||||
raise SystemExit()
|
||||
except ImportError as er:
|
||||
raise SystemExit(er)
|
||||
self.d = Dialog(dialog="dialog", autowidgetsize=True)
|
||||
|
||||
def checklist(self):
|
||||
|
|
|
@ -53,6 +53,6 @@ def choose_upg(packages):
|
|||
if name in packages:
|
||||
selected_packages.append(name)
|
||||
if not selected_packages:
|
||||
raise SystemExit()
|
||||
raise SystemExit(1)
|
||||
print()
|
||||
return selected_packages
|
||||
|
|
Loading…
Reference in a new issue