Skip to content

NoneType error with no client secret #53

@athoms

Description

@athoms

Hi, thanks for this helpful project!

If the client secret is not specified in the configuration, the line

example_client_status = [example_client_value in i for i in [client_id, client_secret]]

produces the error argument of type 'NoneType' is not iterable.

A simple fix would be
example_client_status = [example_client_value in i for i in [client_id, client_secret] if i is not None]
or just
example_client_status = [example_client_value in i for i in [client_id, client_secret] if i]
if empty strings can be ignored.

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