Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed TypeError when contributed_node is being None. #480

Closed
wants to merge 1 commit into from

Conversation

cdfmlr
Copy link

@cdfmlr cdfmlr commented Nov 9, 2023

Fix another TypeError: 'NoneType' object is not subscriptable in main.update_data_with_commit_stats():

...
  File "/waka-readme-stats/main.py", line 136, in <listcomp>
    contributed_nodes = [r for r in contributed["data"]["user"]["repositoriesContributedTo"]["nodes"] if r["name"] not in repo_names and not r["isFork"]]
                                                                                                         ~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited

Could relate to #463

Fix error: https://github.com/cdfmlr/cdfmlr/actions/runs/6806050372/job/18507819072

  File "/waka-readme-stats/main.py", line 136, in <listcomp>
    contributed_nodes = [r for r in contributed["data"]["user"]["repositoriesContributedTo"]["nodes"] if r["name"] not in repo_names and not r["isFork"]]
                                                                                                         ~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited
@cdfmlr
Copy link
Author

cdfmlr commented Nov 9, 2023

Duplicated with #478

@cdfmlr cdfmlr closed this Nov 9, 2023
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