generated from dopt-python/py311-cython
add hint for abortion by user
This commit is contained in:
parent
11b090253f
commit
960565896c
@ -500,6 +500,10 @@ def app() -> bool:
|
||||
"Blockchain kann geprüft werden, ob die Einträge der Datenbank geändert wurden.\n"
|
||||
"Die Blockchain verwendet Proof-of-Work (PoW) als Konsensus-Algorithmus."
|
||||
)
|
||||
console.print(
|
||||
"\n[italic royal_blue1]Hinweis: Sie können die Anwendung jederzeit durch Drücken der "
|
||||
"Tastenkombination >Strg< + >C< beenden\n"
|
||||
)
|
||||
if not click.confirm("Fortfahren?", default=True):
|
||||
return True
|
||||
|
||||
@ -606,8 +610,7 @@ def main() -> None:
|
||||
try:
|
||||
aborted = app()
|
||||
except (KeyboardInterrupt, click.exceptions.Abort):
|
||||
console.print("\n[italic]Die Anwendung wurde durch den Nutzer beendet.")
|
||||
sys.exit(1)
|
||||
aborted = True
|
||||
|
||||
if aborted:
|
||||
console.print("\n[italic]Die Anwendung wurde durch den Nutzer beendet.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user