Strange Django session KeyError
<p>I am learning to use sessions in Django. Here is simple code that I wrote. It was working yesterday, however, I keep getting KeyErrors 'score' today. Where is the problem?</p>

<pre><code>def home(request):
        request.session.get('score',0)
        if request.GET.get('add'):
            request.session['score'] += 1
        if request.GET.get('restart'):
            request.session['score'] = 0
        return render_to_response('home.html', {'zero':request.session['score']})
</code></pre>