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"
|
"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."
|
"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):
|
if not click.confirm("Fortfahren?", default=True):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@ -606,8 +610,7 @@ def main() -> None:
|
|||||||
try:
|
try:
|
||||||
aborted = app()
|
aborted = app()
|
||||||
except (KeyboardInterrupt, click.exceptions.Abort):
|
except (KeyboardInterrupt, click.exceptions.Abort):
|
||||||
console.print("\n[italic]Die Anwendung wurde durch den Nutzer beendet.")
|
aborted = True
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if aborted:
|
if aborted:
|
||||||
console.print("\n[italic]Die Anwendung wurde durch den Nutzer beendet.")
|
console.print("\n[italic]Die Anwendung wurde durch den Nutzer beendet.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user