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
File ".../src/github3/repos/repo.py", line 2163, in latest_release
return self._instance_or_null(release.Release, json)
File ".../src/github3/models.py", line 152, in _instance_or_null
return instance_class(json, self)
File ".../src/github3/models.py", line 53, in __init__
self._update_attributes(json)
File ".../src/github3/repos/release.py", line 102, in _update_attributes
self.author = users.ShortUser(release["author"], self)
File ".../src/github3/models.py", line 53, in __init__
self._update_attributes(json)
File ".../src/github3/users.py", line 309, in _update_attributes
self.avatar_url = user["avatar_url"]
TypeError: 'NoneType' object is not subscriptable
Can you include version information about github3.py, it's dependencies, and the version of Python you're using? We can definitely fix this, I just want to make sure it's definitely a bug in the latest version
This reproduces the issue. It should also be trivial to reproduce this environment to get whatever version information you want; however, AFAICT, the relevant code hasn't changed and this should be just as trivially reproducible on master. Basically, _User._update_attributes expects to get a JSON object, but gets None because of the "author": null that is sent in the reply.
latest_release()
is dying with:This happens on https://api.github.com/repos/uNetworking/uSockets/releases/latest, which, as of reporting, is https://api.github.com/repos/uNetworking/uSockets/releases/tags/v0.8.1, which are producing
"author": null
rather than"author": {...}
.This looks to be similar to #988.
The text was updated successfully, but these errors were encountered: