8000 initializing a repository object fails on github enterprise · Issue #796 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

initializing a repository object fails on github enterprise #796

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

Closed
guykisel opened this issue Mar 16, 2018 · 2 comments
Closed

initializing a repository object fails on github enterprise #796

guykisel opened this issue Mar 16, 2018 · 2 comments

Comments

@guykisel
Copy link

got this error with my github enterprise on the latest release of github3.py:

00:08:06.853 Traceback (most recent call last):
00:08:06.853   File "/home/jenkins/workspace/***/temp/lib64/python3.6/site-packages/github3/models.py", line 48, in __init__
00:08:06.853     self._update_attributes(json)
00:08:06.853   File "/home/jenkins/workspace/***/temp/lib64/python3.6/site-packages/github3/repos/repo.py", line 2450, in _update_attributes
00:08:06.853     self.original_license = repo['license']
00:08:06.853 KeyError: 'license'

looks like github3.py is assuming all repos have license data, but this is not the case for github enterprise.

thanks for this great library :)

@guykisel
Copy link
Author

I think this might be the same error as #794

@sigmavirus24
Copy link
Owner

Correct

Duplicate of #794

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

No branches or pull requests

2 participants
0