Skip to content

TypeError: can only concatenate list (not "str") to list #186

@codygman

Description

@codygman

https://github.com/omab/python-social-auth/blob/master/social/backends/oauth.py#L41

    def get_scope(self):
        """Return list with needed access scope"""
        return (self.DEFAULT_SCOPE or []) + \
               self.setting('SCOPE', [])

causes

TypeError: can only concatenate list (not "str") to list

Fix:

    def get_scope(self):
        """Return list with needed access scope"""
        return (self.DEFAULT_SCOPE or '') + \
               self.setting('SCOPE', '')

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