If it wasn't a private function I'd recommend raising a more specific `ValueError` ("argument that has the right type but an inappropriate value") keeping the same error message ;)