Pārlūkot izejas kodu

Configuration: Compat setting names was not used at all.

Ask Solem 15 gadi atpakaļ
vecāks
revīzija
e16932c6b1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      celery/conf.py

+ 1 - 1
celery/conf.py

@@ -71,7 +71,7 @@ def _get(name, default=None, compat=None):
     compat = [name] + compat
     for i, alias in enumerate(compat):
         try:
-            value = getattr(settings, name)
+            value = getattr(settings, alias)
             i > 0 and warnings.warn(DeprecationWarning(_DEPRECATION_FMT % (
                                                         alias, name)))
             return value