Skip to content

Commit

Permalink
Update celery.py
Browse files Browse the repository at this point in the history
fix TypeError: can only concatenate tuple (not "NoneType") to tuple celery#560
  • Loading branch information
pigjj authored Feb 12, 2019
1 parent 0a1e83d commit b58fb54
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions djcelery/management/commands/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@
class Command(CeleryCommand):
"""The celery command."""
help = 'celery commands, see celery help'
options = (CeleryCommand.options +
base.get_options() +
base.preload_options)
cc_options = CeleryCommand.options if CeleryCommand.options else []
base_options = base.get_options() if base.get_options() else []
if hasattr(base, "preload_options"):
preload_options = base.preload_options if base.preload_options else []
else:
preload_options = []
options = (cc_options +
base_options +
preload_options)

def run_from_argv(self, argv):
argv = self.handle_default_options(argv)
Expand Down

0 comments on commit b58fb54

Please sign in to comment.