Whilst running the GitHub Organizer came across an issue for the update_repo_branch_protection function within the githuborganizer/tasks/github.py file
[2022-01-28 16:51:13,728: INFO/MainProcess] Received task: githuborganizer.tasks.github.update_repo_branch_protection[4499a93d-5a9e-45a8-bd0e-70fcc93fc078]
[2022-01-28 16:51:13,761: INFO/ForkPoolWorker-71] JSON was returned
[2022-01-28 16:51:13,762: ERROR/ForkPoolWorker-71] Task githuborganizer.tasks.github.update_repo_branch_protection[ed36c4c8-4537-45bb-a316-bd223e2e5e72] raised unexpected: TypeError("'NoneType' object is not iterable",)
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 77, in update_repo_branch_protection
for branch in settings['branches']:
TypeError: 'NoneType' object is not iterable
[2022-01-28 16:51:13,764: WARNING/ForkPoolWorker-71] Updating the dependency security settings of repository concat/test.
[2022-01-28 16:51:13,783: INFO/ForkPoolWorker-73] JSON was returned
Whilst running the GitHub Organizer came across an issue for the
update_repo_branch_protection
function within thegithuborganizer/tasks/github.py
file