Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Attribute' object has no attribute 'id' #48

Open
jleclanche opened this issue Dec 3, 2016 · 0 comments
Open

AttributeError: 'Attribute' object has no attribute 'id' #48

jleclanche opened this issue Dec 3, 2016 · 0 comments

Comments

@jleclanche
Copy link
Collaborator

Traceback (most recent call last):
  File "/home/vagrant/env/lib/python3.4/site-packages/django/core/handlers/exception.py", line 39, in inner
    response = get_response(request)
  File "/home/vagrant/env/lib/python3.4/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/vagrant/env/lib/python3.4/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/vagrant/env/lib/python3.4/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/vagrant/env/lib/python3.4/site-packages/django_allauth-0.29.0-py3.4.egg/allauth/socialaccount/providers/oauth2/views.py", line 62, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/vagrant/env/lib/python3.4/site-packages/django_allauth-0.29.0-py3.4.egg/allauth/socialaccount/providers/oauth2/views.py", line 117, in dispatch
    q(self.adapter.provider_id)
  File "/home/vagrant/env/lib/python3.4/site-packages/q.py", line 329, in __call__
    labels = self.get_call_exprs(''.join(lines[-i:]).replace('\n', ''))
  File "/home/vagrant/env/lib/python3.4/site-packages/q.py", line 224, in get_call_exprs
    offsets.append(arg.col_offset - len(arg.value.id) - 1)
AttributeError: 'Attribute' object has no attribute 'id'

Happens when introducing q(self.adapter.provider_id) right here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant