`InputError` isn't a thing! This should be `ValueError` I think.