Skip to content

monthly contributor report throwing error #493

@jmeridth

Description

@jmeridth

Describe the bug

From https://github.com/github/github-ospo/actions/runs/26733419009/job/78781814733

Error getting contributors for repository: github-community-projects/issue-metrics
'dict' object has no attribute 'login'
Traceback (most recent call last):
  File "/action/workspace/contributors.py", line 212, in <module>
    main()
    ~~~~^^
  File "/action/workspace/contributors.py", line 73, in main
    contributors = contributor_stats.get_sponsor_information(
        contributors, token, ghe
    )
  File "/action/workspace/contributor_stats.py", line 173, in get_sponsor_information
    if data["repositoryOwner"]["hasSponsorsListing"]:
       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

To Reproduce

unknown currently

Expected behavior

contributor report created without error

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions