'Returns course_team object from team_id.'

def _get_course_team(self, team_id):

    try:
        result = CourseTeam.objects.get(team_id=team_id)
    except ObjectDoesNotExist:
        raise CommandError(u'Argument    {0}    is    not    a    course_team    team_id'.format(team_id))
    return result
