Skip to content

Conversation

@madisonrogers
Copy link

@madisonrogers madisonrogers commented May 12, 2018

To fix the IndexError caused by an empty line being entered, I added a while loop in main.py to check if the action variable is an empty string. If it is, I prompted the user to enter what they wanted to do again. Now entering an empty string will not throw an error causing the program to crash, it will just prompt the user.

Madison Rogers added 2 commits May 11, 2018 22:35
…how a message saying you must enter what you want to do, then re-prompt the user for input. This got rid of the IndexError: list index out of range error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant