diff options
-rw-r--r-- | kasus.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -15,10 +15,16 @@ while True: total += 1 print(f"{Style.BRIGHT}--- Übung {total} ---{Style.NORMAL}") print(parameters) + print() print(queryString) print() - response = input("> ") + try: + response = input("> ") + except (KeyboardInterrupt, EOFError): + # TODO print statistics + print("\nBis später!") + break print(f"{Style.BRIGHT}", end="") |