Skip to content

Commit

Permalink
simplify selection options
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Jul 1, 2024
1 parent f63597c commit a24e0e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions looper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,12 @@ def looper_config_tutorial():
"[bold]Does this look good?[/bold] [bold green]Y[/bold green]/[red]n[/red]..."
)
selection = None
while selection not in ["y", "Y", "n", "N"]:
selection = console.input("\nSelection: ")
if selection in ["n", "N"]:
while selection not in ["y", "n"]:
selection = console.input("\nSelection: ").lower().strip()
if selection == "n":
console.print("Starting over...")
pass
if selection in ["y", "Y"]:
if selection == "y":
creating = False

if not os.path.exists(piface_path):
Expand Down

0 comments on commit a24e0e8

Please sign in to comment.