There was an error while loading. Please reload this page.
1 parent ad5ce4f commit d8731f7Copy full SHA for d8731f7
1 file changed
gh_org_mgr/_gh_org.py
@@ -1243,6 +1243,13 @@ def _populate_current_repos_collaborators(self) -> None:
1243
if repo.name in self.graphql_repos_collaborators:
1244
# Extract each collaborator from the GraphQL response for this repo
1245
for collaborator in self.graphql_repos_collaborators[repo.name]:
1246
+ if collaborator is None or collaborator.get("node") is None:
1247
+ logging.debug(
1248
+ "Skipping collaborator entry with missing data in repo %s: %s",
1249
+ repo.name,
1250
+ collaborator,
1251
+ )
1252
+ continue
1253
login: str = collaborator["node"]["login"]
1254
# Skip entry if collaborator is org owner, which is "admin" anyway
1255
if login.lower() in [user.login.lower() for user in self.current_org_owners]:
0 commit comments