Skip to content

GithubApp.slug is None due to no _completeIfNotSet call #2487

@ecs-jnguyen

Description

@ecs-jnguyen

I noticed that when I do the following code, it will print out None. I saw that the slug attribute doesn't use _completeIfNotSet before returning the value.:

g = Github(jwt="jwt_token_here")
app = g.get_app()
print(f"slug: {app.slug}")

https://github.com/PyGithub/PyGithub/blob/master/github/GithubApp.py#L107-L112

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions