'Verify the settings are parseable.'

def clean_fields(self, exclude=tuple()):

    errors = {}
    error_message = _(u'Please    check    the    syntax    of    your    entry.')
    if ('courses_completed' not in exclude):
        try:
            self.completed_settings
        except (ValueError, InvalidKeyError):
            errors['courses_completed'] = [unicode(error_message)]
    if ('courses_enrolled' not in exclude):
        try:
            self.enrolled_settings
        except (ValueError, InvalidKeyError):
            errors['courses_enrolled'] = [unicode(error_message)]
    if ('course_groups' not in exclude):
        store = modulestore()
        try:
            for key_list in self.course_group_settings.values():
                for course_key in key_list:
                    if (not store.get_course(course_key)):
                        ValueError(u'The    course    {course_key}    does    not    exist.'.format(course_key=course_key))
        except (ValueError, InvalidKeyError):
            errors['course_groups'] = [unicode(error_message)]
    if errors:
        raise ValidationError(errors)
