Explorar o código

Fixed wrong arguments

Dmitry Malinovsky %!s(int64=11) %!d(string=hai) anos
pai
achega
bc7eb64af2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/bin/worker.py

+ 1 - 1
celery/bin/worker.py

@@ -175,7 +175,7 @@ class worker(Command):
         # parse options before detaching so errors can be handled.
         options, args = self.prepare_args(
             *self.parse_options(prog_name, argv, command))
-        self.maybe_detach([command] + sys.argv[1:])
+        self.maybe_detach([command] + argv)
         return self(*args, **options)
 
     def maybe_detach(self, argv, dopts=['-D', '--detach']):