I am trying to screen some github repos. I have a list of organizations that I want to screen. For some it is working fine, for other I am getting 404 Not found error even though they actually exist:
github_api = Github(github_access_token)
print(github_api.get_organization('eosforce').get_repos())
File "C:/Users/haase/Documents/VL/cryptodevel/create_repos.py", line 100, in <module>
print(github_api.get_organization('eosforce').get_repos())
File "C:\Users\haase\Documents\VL\pythonProject\lib\site-packages\github\MainClass.py", line 296, in get_organization
headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}")
File "C:\Users\haase\Documents\VL\pythonProject\lib\site-packages\github\Requester.py", line 353, in requestJsonAndCheck
return self.__check(
File "C:\Users\haase\Documents\VL\pythonProject\lib\site-packages\github\Requester.py", line 378, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/orgs#get-an-organization"}
For example, this works fine:
print(github_api.get_organization('bitcoin').get_repos())
Does anybody have any idea where can be the problem?