Skip to content

Commit

Permalink
show user input in "out of range" error msg #39
Browse files Browse the repository at this point in the history
  • Loading branch information
blahosyl committed Apr 16, 2024
1 parent dfd93f0 commit 4aa28b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def select_dish(self):
+ Back.RESET + " "))
while dish_number < 1 or dish_number > len(self.dish_data) - 1:
dish_number = int(
input(Back.RED + f"Number out of range 🤔 "
input(Back.RED + f'Number "' + Fore.CYAN + f'{dish_number}'
+ Fore.RESET + '" out of range 🤔 '
f"Please type a number between 1 and "
f"{len(self.dish_data) - 1}:"
+ Back.RESET + " "))
Expand Down

0 comments on commit 4aa28b7

Please sign in to comment.