Browse Source

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

Ask Solem 12 years ago
parent
commit
722478d6b1
1 changed files with 1 additions and 1 deletions
  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)