Updated for KeyboardInterrupt

This commit is contained in:
Dimitris Zlatanidis 2023-04-30 22:17:37 +03:00
parent a6091d4c2f
commit 4accdfe1a2

View file

@ -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