'Just call the get_override_for_ccx method if there is a ccx'

def get(self, block, name, default):

    ccx = course_key = None
    identifier = getattr(block, 'id', None)
    if isinstance(identifier, CourseKey):
        course_key = block.id
    elif isinstance(identifier, UsageKey):
        course_key = block.id.course_key
    elif hasattr(block, 'location'):
        course_key = block.location.course_key
    else:
        msg = 'Unable    to    get    course    id    when    calculating    ccx    overide    for    block    type    %r'
        log.error(msg, type(block))
    if (course_key is not None):
        ccx = get_current_ccx(course_key)
    if ccx:
        return get_override_for_ccx(ccx, block, name, default)
    return default
