Updated for KeyboardInterrupt

This commit is contained in:
Dimitris Zlatanidis 2023-04-30 22:24:17 +03:00
parent 6bed88bac4
commit 462349612e

View file

@ -273,11 +273,8 @@ class ViewMessage(Configs):
def question(self) -> None:
""" Manage to proceed. """
try:
if not self.option_for_yes and self.ask_question:
answer: str = input('\nDo you want to continue? [y/N] ')
if answer not in ['Y', 'y']:
raise SystemExit()
print()
except KeyboardInterrupt:
raise SystemExit()
if not self.option_for_yes and self.ask_question:
answer: str = input('\nDo you want to continue? [y/N] ')
if answer not in ['Y', 'y']:
raise SystemExit()
print()