Skip to content

Commit

Permalink
fix: empty command to the shell would hang
Browse files Browse the repository at this point in the history
Co-authored-by: Raymond Li <hi@raymond.li>
  • Loading branch information
GetPsyched and Raymo111 committed Jul 3, 2024
1 parent 8d0270b commit 90c780e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charachorder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def charachorder_shell(device: charachorder.CharaChorder) -> None:

while True:
try:
command = input("> ").split(" ")
command = [word for word in input("> ").split(" ") if word]
if not command:
continue
if command[0] == "exit":
break

Expand Down

0 comments on commit 90c780e

Please sign in to comment.