Description
Hello!
Using github3.py==1.0.0a4 and Python 2.7.10
I have a really strange issue, where I'm unable to fetch a license upon github3.repository() with one repository, but the same credentials work for another repository.
Here's the code sample that I'm using to login() and to call the .repository() method with:
class GithubHandler(object):
"""
The main handler for any and all interactions with Github.
"""
def __init__(self, user, token, owner, repo):
self.is_authed = False
# Auth stuff
self.user = user
self.token = token
self.gh = self.login()
self.repo_name = repo
self.curr_repo = self.gh.repository(owner, repo)
def login(self):
try:
return github3.login(token=self.token)
except github3.models.GitHubError:
raise
Nothing too fancy, just what I thought would be boiler plate.
What I call it with:
git = GithubHandler('GrappigPanda',
'<super-secret-token>',
'GrappigPanda',
'notorious')
The GrappigPanda/notorious repo causes it to fail, but if I am to run it on GrappigPanda/pygemony, everything is copacetic.
Both of these repos have Licenses (same name format "LICENSE", and I most likely copy pasted the LICENSE from pygemony to notorious).
Here's a link to notorious' license, just to show something weird is happening here: https://github.com/GrappigPanda/notorious/blob/master/LICENSE
Now, with all that said, I do want to note this: ever since inception of the notorious repo, I've had several strange issues with it (some of which required contacting Github support), so there's entirely the possibility that there's just mangled data or some other such thing on Github's end. Albeit, I'm not 100% sure how to investigate if it is on Github's end, but I'm going to try curling endpoints and seeing if I can get anything weird. If everything seems normal, I'll follow up here.