Explorar o código

Remove redundant respects_app_option check.

Ionel Cristian Mărieș %!s(int64=11) %!d(string=hai) anos
pai
achega
938b0b8b97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/bin/base.py

+ 1 - 1
celery/bin/base.py

@@ -427,7 +427,7 @@ class Command(object):
         if config:
             os.environ['CELERY_CONFIG_MODULE'] = config
         if self.respects_app_option:
-            if app and self.respects_app_option:
+            if app:
                 self.app = self.find_app(app)
             elif self.app is None:
                 self.app = self.get_app(loader=loader)