From b2ae4748fe8c721cd13316803c579eee0e93d4a1 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 12 May 2022 18:18:13 +0300 Subject: [PATCH] Fixed raise and clear the screen Signed-off-by: Dimitris Zlatanidis --- slpkg/sbo/network.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/slpkg/sbo/network.py b/slpkg/sbo/network.py index f8f2b005..e18a16c0 100644 --- a/slpkg/sbo/network.py +++ b/slpkg/sbo/network.py @@ -300,7 +300,8 @@ class SBoNetwork(BlackList, Utils): status = False pkg = DialogUtil(data, text, title, backtitle, status).checklist() 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: raise SystemExit(1) self.name = "".join(pkg) @@ -341,7 +342,8 @@ class SBoNetwork(BlackList, Utils): if self.FAULT: print() 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) else: sources = []