It raises a ValueError exception. Should I change it to use the same message as here?