Updated for KeyboardInterrupt

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 13:22:47 +03:00
parent ca5095bc1b
commit 422af4f4b2

View file

@ -85,7 +85,10 @@ class RemovePackages(Configs):
for dep in dependencies:
print(f"{self.cyan:>16}-> {dep}{self.endc}")
answer: str = input('\nDo you want to remove? [y/N] ')
try:
answer: str = input('\nDo you want to remove? [y/N] ')
except KeyboardInterrupt:
raise SystemExit()
if answer not in ['Y', 'y']:
return False