pub(crate) fn value_error<T>(msg: String) -> PyResult<T>
Build a ValueError for a rejected settings field.
ValueError