avoid empty command
This commit is contained in:
parent
e2774e098e
commit
f08566c35b
2
main.py
2
main.py
@ -187,6 +187,8 @@ while True:
|
|||||||
choice = 0
|
choice = 0
|
||||||
should_restart = True
|
should_restart = True
|
||||||
break
|
break
|
||||||
|
elif text == "":
|
||||||
|
continue
|
||||||
choice = int(text)
|
choice = int(text)
|
||||||
if choice not in possible_choices:
|
if choice not in possible_choices:
|
||||||
print("invalid choice")
|
print("invalid choice")
|
||||||
|
Loading…
Reference in New Issue
Block a user