Skip to content

When we don't select a race, program ends suddenly #35

@satotsutomu

Description

@satotsutomu

When we hit just return without specifying a race, we can see the follwoing error.

Choose a race
1- Human 2- Elf 3- Orc
My race is:
Traceback (most recent call last):
File "main.py", line 259, in
main()
File "main.py", line 228, in main
create_hero()
File "main.py", line 106, in create_hero
race_choice = int(input("My race is: "))
ValueError: invalid literal for int() with base 10: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions