Permalink
Browse files

Merge remote-tracking branch 'jbergantine/patch-2'

  • Loading branch information...
2 parents 2c07f5b + 9265651 commit 7dd8bc854b3efb2b40523018bd3b301e92bd6e39 @flashingpumpkin committed Jun 4, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 socialregistration/views.py
@@ -236,7 +236,10 @@ def get(self, request):
form or generate a username automatically
"""
- client = request.session[self.get_client().get_session_key()]
+ try:
+ client = request.session[self.get_client().get_session_key()]
+ except KeyError:
+ return self.render_to_response({'error': "Session expired."})
# Get the lookup dictionary to find the user's profile
lookup_kwargs = self.get_lookup_kwargs(request, client)

0 comments on commit 7dd8bc8

Please sign in to comment.