I don't think this error message is correct. It should be `None` or a string.