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

Commits on Nov 9, 2023

  1. fix(main.update_data_with_commit_stats): None is not subscriptable

    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 committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    f0e0537 View commit details
    Browse the repository at this point in the history