8000 The invalid value entered for the menu , makes it an infinite loop · Issue #2 · tecladocode/complete-python-course · GitHub
[go: up one dir, main page]

Skip to content

The invalid value entered for the menu , makes it an infinite loop #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dheerajalim opened this issue Nov 21, 2018 · 2 comments
Closed

Comments

@dheerajalim
Copy link
dheerajalim commented Nov 21, 2018

[https://github.com/tecladocode/complete-python-course/blob/master/section3/milestone_1/app.py]
Once you start the program, the program asks for user input.
The invalid input is not handled correctly.

Enter 'a' to add a movie, 'l' to see your movies, 'f' to find a movie, and 'q' to quit: <enter anything apart from a,I,f,q>

and then see the infinite loop

Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again.
Unknown command-please try again...............

@jslvtr
Copy link
Contributor
jslvtr commented Nov 21, 2018

Thank you @dheerajalim ! We will fix this—I think the continue statement there is the cause of this bug.

@jslvtr jslvtr closed this as completed in c7a2d4e Nov 21, 2018
@dheerajalim
Copy link
Author

Yes @jslvtr , that is the issue. Thanks for taking up the defect

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

No branches or pull requests

2 participants
0