Whilst running the GitHub Organizer came across an issue for the update_organization_teams function within the githuborganizer/tasks/github.py file
INFO/ForkPoolWorker-44] Missed the cache building the url
[2022-01-28 16:46:15,294: INFO/ForkPoolWorker-49] Building a url from ('https://api.github.com', 'repos', 'concat', 'gco-People')
[2022-01-28 16:46:15,294: INFO/ForkPoolWorker-49] Missed the cache building the url
[2022-01-28 16:46:15,310: ERROR/ForkPoolWorker-42] Task githuborganizer.tasks.github.update_organization_teams[63e92cd6-c119-45d7-ad0b-0ee2806796c8] raised unexpected: TypeError('list indices must be integers or slices, not str',)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 412, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 704, in __protected_call__
return self.run(*args, **kwargs)
File "/app/githuborganizer/tasks/github.py", line 137, in update_organization_teams
repo_permissions = gh.team_has_repositories(org.client.app, ghteam)
File "/app/githuborganizer/models/gh.py", line 49, in team_has_repositories
repositories[repo['name']] = []
TypeError: list indices must be integers or slices, not str
Whilst running the GitHub Organizer came across an issue for the
update_organization_teams
function within the githuborganizer/tasks/github.py file