This is a ValueError. The provided value does not match what was expected. A TypeError is more appropriate if the provided type does not match what was expected.