Fixed raise and clear the screen

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-12 18:18:13 +03:00
parent 1ea79f0dfa
commit b2ae4748fe

View file

@ -300,7 +300,8 @@ class SBoNetwork(BlackList, Utils):
status = False status = False
pkg = DialogUtil(data, text, title, backtitle, status).checklist() pkg = DialogUtil(data, text, title, backtitle, status).checklist()
if pkg and len(pkg) > 1: if pkg and len(pkg) > 1:
raise SystemExit("\nslpkg: Error: Choose only one package") os.system("clear")
raise SystemExit("\nslpkg: Error: Choose only one package\n")
if pkg is None: if pkg is None:
raise SystemExit(1) raise SystemExit(1)
self.name = "".join(pkg) self.name = "".join(pkg)
@ -341,7 +342,8 @@ class SBoNetwork(BlackList, Utils):
if self.FAULT: if self.FAULT:
print() print()
self.msg.template(78) self.msg.template(78)
print(f"| Package {self.prgnam} {self.red} {self.FAULT} {self.endc}") print(f"| Package {self.prgnam} {self.red} {self.FAULT} "
f"{self.endc}")
self.msg.template(78) self.msg.template(78)
else: else:
sources = [] sources = []