def _get_at_from_session(self):
        """
        Get the saved access token for private resources from the session.
        """
        try:
            return self.request.session['oauth_%s_access_token'
                                        % get_token_prefix(
                                            self.request_token_url)]
        except __HOLE__:
            raise OAuthError(
                _('No access token saved for "%s".')
                % get_token_prefix(self.request_token_url))
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/providers/oauth/client.py/OAuth._get_at_from_session