flashingpumpkin/django-socialregistration — Issue #131: KeyError with sessions
Author: jorde
Created: 2011-11-24 00:49:18+00:00
State: open

I'm seeing these session errors all the time but not for all the users. Happens fro both Facebook and Twitter. A sample:

```Traceback (most recent call last):

File "/sites/.virtualenvs/project/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/sites/.virtualenvs/project/local/lib/python2.7/site-packages/django/views/generic/base.py", line 47, in view
return self.dispatch(request, *args, **kwargs)

File "/sites/.virtualenvs/project/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in dispatch
return handler(request, *args, **kwargs)

File "/sites/.virtualenvs/project/src/django-socialregistration/socialregistration/views.py", line 208, in get
client = request.session[self.get_client().get_session_key()]

File "/sites/.virtualenvs/project/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 47, in __getitem__
return self._session[key]

KeyError: 'socialreg:facebook'```