mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +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:
|
||||
""" 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()
|
||||
|
|
Loading…
Add table
Reference in a new issue