Explorar el Código

celery cmd: Don't use current_app if app already set

Ask Solem hace 12 años
padre
commit
722478d6b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/bin/base.py

+ 1 - 1
celery/bin/base.py

@@ -288,7 +288,7 @@ class Command(object):
             os.environ['CELERY_CONFIG_MODULE'] = config_module
         if app:
             self.app = self.find_app(app)
-        else:
+        elif self.app is None:
             self.app = self.get_app(loader=loader)
         if self.enable_config_from_cmdline:
             argv = self.process_cmdline_config(argv)