The error thrown is likely generic because it is coming from the Python runtime and not student code or expected results in test cases.
We’re not interested in adding error handling or input validation cases to these exercises at this time, as we have a general-ish policy to not require input validation for practice exercises unless the exercise itself is focused on input validation or error handling (or needs it for some structural reason).
There are exceptions to this policy (and the amount of them varies by programming language track), but for the most part we like to keep the practice exercises away from those sorts of tests.
If the student or the mentor would like to practice either input validation or error handling – they are free to do so by adding additional test cases locally.
Finally, the resistor-color exercises on the Python track pull from a common problem-specifications repo that is shared by all programming language tracks on Exercism. So if you’d like to discuss adding test cases or otherwise modifying the exercises, it should happen in the more generic Exercism category, and not here in Python.