def season_ajax_progress(request):
    season_id = request.GET.get('id', False)
    if season_id is False:
        raise Http404

    try:
        season_object = Season.objects.get(pk=season_id)
    except Season.DoesNotExist:
        raise Http404
    except __HOLE__:
        raise Http404

    return HttpResponse(json.dumps(season_object.get_progress()), content_type="application/json")
dataset/ETHPy150Open jzahedieh/django-tennis-ladder/ladder/views.py/season_ajax_progress