Skip to content

Commit

Permalink
Merge pull request #478 from anduong96/master
Browse files Browse the repository at this point in the history
Fix NPE when element in ["repositoriesContributedTo"]["nodes"] is null
  • Loading branch information
anmol098 authored Nov 21, 2023
2 parents 7fbe9b7 + 7a9d9f9 commit e88a4ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e88a4ba

Please sign in to comment.