mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Updated for KeyboardInterrupt
This commit is contained in:
parent
6bed88bac4
commit
462349612e
1 changed files with 5 additions and 8 deletions
|
@ -273,11 +273,8 @@ class ViewMessage(Configs):
|
||||||
|
|
||||||
def question(self) -> None:
|
def question(self) -> None:
|
||||||
""" Manage to proceed. """
|
""" Manage to proceed. """
|
||||||
try:
|
|
||||||
if not self.option_for_yes and self.ask_question:
|
if not self.option_for_yes and self.ask_question:
|
||||||
answer: str = input('\nDo you want to continue? [y/N] ')
|
answer: str = input('\nDo you want to continue? [y/N] ')
|
||||||
if answer not in ['Y', 'y']:
|
if answer not in ['Y', 'y']:
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
print()
|
print()
|
||||||
except KeyboardInterrupt:
|
|
||||||
raise SystemExit()
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue