Browse Source

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

Ask Solem 11 years ago
parent
commit
10f76cbf43
1 changed files with 1 additions and 1 deletions
  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