From 4accdfe1a2860be0f6cf558dbae705d03de7a505 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 30 Apr 2023 22:17:37 +0300 Subject: [PATCH] Updated for KeyboardInterrupt --- slpkg/remove_packages.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index 5f7d35be..d44ee529 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -85,10 +85,7 @@ class RemovePackages(Configs): for dep in dependencies: print(f"{self.cyan:>16}-> {dep}{self.endc}") - try: - answer: str = input('\nDo you want to remove? [y/N] ') - except KeyboardInterrupt: - raise SystemExit() + answer: str = input('\nDo you want to remove? [y/N] ') if answer not in ['Y', 'y']: return False