Skip to content

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

@tbird20d

Description

@tbird20d

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions