Commits

Alexis Metaireau committed 53adee9

can't access unexisting variables

  • Participants
  • Parent commits 79eaf56

Comments (0)

Files changed (1)

oauthclient/views.py

     """
     for key in ('oauth_token', 'oauth_token_secret', 
         'request_token', 'request_token_secret'):
-        if request.session[identifier + '_' + key]:
+        if hasattr(request.session, identifier + '_' + key):
             del request.session[identifier + '_' + key]
             
     return render('logout.html', {})