Explorar o código

Settings filter: Account for non-string keys. Closes #1663

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
10f76cbf43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/app/utils.py

+ 1 - 1
celery/app/utils.py

@@ -177,7 +177,7 @@ def filter_hidden_settings(conf):
             return filter_hidden_settings(value)
         if isinstance(value, string_t) and HIDDEN_SETTINGS.search(key):
             return mask
-        if 'BROKER_URL' in key.upper():
+        if isinstance(key, string_t) and 'BROKER_URL' in key.upper():
             from kombu import Connection
             return Connection(value).as_uri(mask=mask)
         return value