Skip to content

fix: skip null collaborator entries in GraphQL response - #246

Open
cornelius wants to merge 1 commit into
mainfrom
fix-null-collaborator-crash
Open

fix: skip null collaborator entries in GraphQL response#246
cornelius wants to merge 1 commit into
mainfrom
fix-null-collaborator-crash

Conversation

@cornelius

Copy link
Copy Markdown
Member

The GitHub GraphQL API can return null entries in the collaborators edges list, e.g. when a user account has been deleted or suspended. This causes a TypeError crash in _populate_current_repos_collaborators.

Skip these entries gracefully with a debug log message instead of crashing.

The GitHub GraphQL API can return null entries in the collaborators
edges list, e.g. when a user account has been deleted or suspended.
This causes a TypeError crash in _populate_current_repos_collaborators.

Skip these entries gracefully with a debug log message instead of
crashing.

Assisted-by: Kiro
Signed-off-by: Cornelius Schumacher <cornelius.schumacher@deutschebahn.com>
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

Successfully merging this pull request may close these issues.

1 participant