You've already forked wakapi-readme-stats
Merge pull request #478 from anduong96/master
Fix NPE when element in ["repositoriesContributedTo"]["nodes"] is null
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user