You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/computeruser/dev/issue-metrics/issue_metrics.py", line 327, in <module>
main()
File "/Users/computeruser/dev/issue-metrics/issue_metrics.py", line 282, in main
issues_with_metrics, num_issues_open, num_issues_closed = get_per_issue_metrics(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/computeruser/dev/issue-metrics/issue_metrics.py", line 184, in get_per_issue_metrics
issue_with_metrics.label_metrics = get_label_metrics(issue, labels)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/computeruser/dev/issue-metrics/labels.py", line 45, in get_label_metrics
label_events = get_label_events(issue, labels)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/computeruser/dev/issue-metrics/labels.py", line 26, in get_label_events
for event in issue.issue.events():
File "/Users/computeruser/micromamba/envs/issue-metrics/lib/python3.11/site-packages/github3/structs.py", line 131, in __iter__
yield cls(i)
^^^^^^
File "/Users/computeruser/micromamba/envs/issue-metrics/lib/python3.11/site-packages/github3/models.py", line 52, in __init__
self._update_attributes(json)
File "/Users/computeruser/micromamba/envs/issue-metrics/lib/python3.11/site-packages/github3/issues/event.py", line 63, in _update_attributes
self.actor = users.ShortUser(event["actor"], self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/computeruser/micromamba/envs/issue-metrics/lib/python3.11/site-packages/github3/models.py", line 52, in __init__
self._update_attributes(json)
File "/Users/computeruser/micromamba/envs/issue-metrics/lib/python3.11/site-packages/github3/users.py", line 309, in _update_attributes
self.avatar_url = user["avatar_url"]
~~~~^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
adding this to _update_attributes seems to have resolved this issue:
Traceback:
adding this to
_update_attributes
seems to have resolved this issue:The text was updated successfully, but these errors were encountered: