Quellcode durchsuchen

config_from_object(str) should simply be a module not an attribute of module

Ask Solem vor 14 Jahren
Ursprung
Commit
acc3430fe7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      celery/loaders/base.py

+ 1 - 1
celery/loaders/base.py

@@ -94,7 +94,7 @@ class BaseLoader(object):
     def config_from_object(self, obj, silent=False):
     def config_from_object(self, obj, silent=False):
         if isinstance(obj, basestring):
         if isinstance(obj, basestring):
             try:
             try:
-                obj = get_cls_by_name(obj, imp=self.import_from_cwd)
+                obj = self.import_from_cwd(obj)
             except (ImportError, AttributeError):
             except (ImportError, AttributeError):
                 if silent:
                 if silent:
                     return False
                     return False