Skip to content

When a user does not exist in contributors, the script blows up #2

Description

@aclark4life

e.g.


3163 - 1099/5000 - GET - https://api.github.com/teams/107250/repos?per_page=10000
REMOVED TEAMS:
UPDATING TEAMS:
    - --auto-collective.codemirror-owners - ADDED MEMBERS:
3164 - 1098/5000 - PUT - https://api.github.com/teams/161595/members/alex-morega?per_page=10000
{'headers': {'Authorization': 'Basic cGxvbmUtZm91bmRhdGlvbjpnYXJiYXNpc2dldHRpbmdvbGQzMA==',
             'Content-Length': '0'},
 'url': u'https://api.github.com/teams/161595/members/alex-morega?per_page=10000'}
'{"message":"Not Found"}'
Traceback (most recent call last):
  File "/opt/github-collective/bin/github-collective", line 8, in <module>
    load_entry_point('github-collective==0.1.4', 'console_scripts', 'github-collective')()
  File "/opt/github-collective/githubcollective/__init__.py", line 81, in run
    ).run(new, old)
  File "/opt/github-collective/githubcollective/sync.py", line 150, in run
    self.add_team_member(old, old_team, member)
  File "/opt/github-collective/githubcollective/sync.py", line 248, in add_team_member
    return self.github._gh_org_add_team_member(team.id, member)
  File "/opt/github-collective/githubcollective/github.py", line 148, in _gh_org_add_team_member
    return self._put_request('/teams/%s/members/%s' % (id, member))
  File "/opt/github-collective/githubcollective/github.py", line 80, in _put_request
    return self._request(requests.put, url)
  File "/opt/github-collective/githubcollective/github.py", line 61, in _request
    raise e
requests.exceptions.HTTPError: 404 Client Error


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions