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

github3.py issue - is still used? #446

Open
simahawk opened this issue Apr 18, 2020 · 3 comments
Open

github3.py issue - is still used? #446

simahawk opened this issue Apr 18, 2020 · 3 comments
Labels

Comments

@simahawk
Copy link
Contributor

I'm trying oca-migrate-branch and it fails here

python3.6/site-packages/github3/users.py", line 888, in _update_attributes
    self.disk_usage = user["disk_usage"]
KeyError: 'disk_usage'

I digged into it and my user is authenticated and I get back all my info from github but this key is not available (as well some others required later) .

Anybody used this tool recently?

BTW I've checked what https://github.com/PyGithub does: seems they pick such info only if available.

@sbidoul
Copy link
Member

sbidoul commented Apr 18, 2020

oca-github-bot uses github3.py (1.3.0) and works fine.

@simahawk
Copy link
Contributor Author

simahawk commented Apr 18, 2020

Same version here.

AFAIS github.me() is never called in the bot.
This is were it fails on migrate

gh_user = self.github.me()

and the migrate tasks are the only ones using it.

It seems required to provide commit credentials.

@simahawk
Copy link
Contributor Author

I fixed it here sigmavirus24/github3.py#992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants