From f08566c35b30c2dd5e26c7dbed47c8baa4935546 Mon Sep 17 00:00:00 2001 From: sfja Date: Tue, 18 Feb 2025 14:55:17 +0100 Subject: [PATCH] avoid empty command --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 4ec9c22..d925be4 100644 --- a/main.py +++ b/main.py @@ -187,6 +187,8 @@ while True: choice = 0 should_restart = True break + elif text == "": + continue choice = int(text) if choice not in possible_choices: print("invalid choice")