Skip to content

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

Description

@jleclanche
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions