We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1e83d commit b58fb54Copy full SHA for b58fb54
djcelery/management/commands/celery.py
@@ -11,9 +11,15 @@
11
class Command(CeleryCommand):
12
"""The celery command."""
13
help = 'celery commands, see celery help'
14
- options = (CeleryCommand.options +
15
- base.get_options() +
16
- 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"):
17
+ preload_options = base.preload_options if base.preload_options else []
18
+ else:
19
+ preload_options = []
20
+ options = (cc_options +
21
+ base_options +
22
+ preload_options)
23
24
def run_from_argv(self, argv):
25
argv = self.handle_default_options(argv)
0 commit comments