mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Run futurize --stage2
This commit is contained in:
parent
ab6196589b
commit
597cc9fe29
12 changed files with 30 additions and 30 deletions
|
@ -693,8 +693,8 @@ class Config(object):
|
|||
""" Add tokens and passwords to blacklisted words in logger """
|
||||
blacklist = set()
|
||||
|
||||
for key, subkeys in self._config.items():
|
||||
for subkey, value in subkeys.items():
|
||||
for key, subkeys in list(self._config.items()):
|
||||
for subkey, value in list(subkeys.items()):
|
||||
if isinstance(value, basestring) and len(value.strip()) > 5 and \
|
||||
subkey.upper() not in _WHITELIST_KEYS and any(bk in subkey.upper() for bk in _BLACKLIST_KEYS):
|
||||
blacklist.add(value.strip())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue