Both of these look like `TypeError` rather than `ValueError`.