Skip to content

Worker bool type error  #18

@tobes64

Description

@tobes64

Whilst running the GitHub Organizer came across an issue for the update_organization_teams function within the githuborganizer/tasks/github.py file

Task githuborganizer.tasks.github.update_organization_teams[75a2f910-9ad1-4575-a1c5-f25c17ae3405] raised unexpected: TypeError("argument of type 'bool' 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 135, in update_organization_teams
    repositories = [x for x in org.get_repositories()]
  File "/app/githuborganizer/tasks/github.py", line 135, in <listcomp>
    repositories = [x for x in org.get_repositories()]
  File "/app/githuborganizer/models/gh.py", line 174, in get_repositories
    if 'exclude_repositories' in self.configuration:
TypeError: argument of type 'bool' is not iterable
[2022-01-28 17:43:10,794: INFO/MainProcess] Scaling down 1 processes.

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