FujiwaraChoki / MoneyPrinterV2

Automate the process of making money online.
GNU Affero General Public License v3.0
2.23k stars 302 forks source link

Gracefully handles empty/non-integer input at menu. Fixes #70 #71

Closed Xeno852 closed 3 months ago

Xeno852 commented 3 months ago

This PR fixes a crash occurring when users enter non-integer or empty inputs during menu option selection. It introduces input validation within a loop, ensuring users provide valid integers corresponding to menu options. Related issue: #70

Changes Made:

How to Test:

  1. Run the program and reach the main menu.
  2. Press enter without typing anything or input a non-integer value.
  3. Verify that the program now prompts for input again instead of crashing.
FujiwaraChoki commented 3 months ago

merged