Merge pull request #478 from anduong96/master

Fix NPE when element in ["repositoriesContributedTo"]["nodes"] is null
This commit is contained in:
Anmol Singh
2023-11-21 19:07:16 +05:30
committed by GitHub

View File

@@ -133,7 +133,8 @@ async def collect_user_repositories() -> Dict:
DBM.g("\tUser repository list collected!")
contributed = await DM.get_remote_graphql("repos_contributed_to", username=GHM.USER.login)
contributed_nodes = [repo for repo in contributed if repo["name"] not in repo_names and not repo["isFork"]]
contributed_nodes = [repo for repo in contributed if repo != None and repo["name"] not in repo_names and not repo["isFork"]]
DBM.g("\tUser contributed to repository list collected!")
return repositories + contributed_nodes