`TypeError` -> `ValueError`.  There's a value problem, not a type problem.