Browse Source

"None" is always substituted

Dmitry Malinovsky 11 năm trước cách đây
mục cha
commit
51592a86a3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/app/base.py

+ 1 - 1
celery/app/base.py

@@ -273,7 +273,7 @@ class Celery(object):
         if not module_name:
             if silent:
                 return False
-            raise ImproperlyConfigured(ERR_ENVVAR_NOT_SET.format(module_name))
+            raise ImproperlyConfigured(ERR_ENVVAR_NOT_SET.format(variable_name))
         return self.config_from_object(module_name, silent=silent, force=force)
 
     def config_from_cmdline(self, argv, namespace='celery'):