Created
October 31, 2016 21:52
-
-
Save gcmurphy/742027539e4708dff8268ac1ea0601a3 to your computer and use it in GitHub Desktop.
Stack trace when listing repositories. Reproducer below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import github3 | |
from os import environ as env | |
client = github3.GitHubEnterprise(env['GH_ENDPOINT'], token=env['GH_TOKEN']) | |
for repository in client.iter_all_repos(): | |
if repository: | |
print("{}/{}".format(repository.owner, repository.name)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "scripts/repository_list.py", line 24, in <module> | |
main() | |
File "scripts/repository_list.py", line 18, in main | |
for repository in client.iter_all_repos(): | |
File "/Users/gm/.pyenv/versions/venv/lib/python2.7/site-packages/github3/structs.py", line 84, in __iter__ | |
yield cls(i, self) if issubclass(cls, GitHubCore) else cls(i) | |
File "/Users/gm/.pyenv/versions/venv/lib/python2.7/site-packages/github3/repos/repo.py", line 121, in __init__ | |
self.owner = User(repo.get('owner', {}), self._session) | |
File "/Users/gm/.pyenv/versions/venv/lib/python2.7/site-packages/github3/users.py", line 123, in __init__ | |
super(User, self).__init__(user, session) | |
File "/Users/gm/.pyenv/versions/venv/lib/python2.7/site-packages/github3/models.py", line 314, in __init__ | |
if acct.get('type'): | |
AttributeError: 'NoneType' object has no attribute 'get' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment