Skip to content
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

I get an exception if I enter a non-number into the "choose a race" field #10

Open
tbird20d opened this issue Nov 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@tbird20d
Copy link
Owner

I get an exception if I put 'elf' in as my race selection.
Please see the following steps to reproduce this problem.

Choose a race
1- Human		2- Elf		3- Orc
My race is: elf
Traceback (most recent call last):
  File "./knight-training", line 258, in <module>
    main()
  File "./knight-training", line 227, in main
    create_hero()
  File "./knight-training", line 105, in create_heroe_choice = int(input("My race is: "))
ValueError: invalid literal for int() with base 10: 'elf'
@tbird20d tbird20d added the bug Something isn't working label Nov 25, 2022
kmarcus293r added a commit to kmarcus293r/python-text-games that referenced this issue Dec 13, 2022
fixing issue tbird20d#10 (hopefully...).


Signed-off-by: kmarcus293r <[email protected]>
@tbird20d
Copy link
Owner Author

Fixed by commit 592fd13

@tbird20d
Copy link
Owner Author

This bug was resolved

@tbird20d tbird20d reopened this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant