mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Run futurize --stage2
This commit is contained in:
parent
ab6196589b
commit
597cc9fe29
12 changed files with 30 additions and 30 deletions
|
@ -61,7 +61,7 @@ def blacklist_config(config):
|
|||
blacklist = set()
|
||||
blacklist_keys = ['HOOK', 'APIKEY', 'KEY', 'PASSWORD', 'TOKEN']
|
||||
|
||||
for key, value in config.items():
|
||||
for key, value in list(config.items()):
|
||||
if isinstance(value, basestring) and len(value.strip()) > 5 and \
|
||||
key.upper() not in _WHITELIST_KEYS and (key.upper() in blacklist_keys or
|
||||
any(bk in key.upper() for bk in _BLACKLIST_KEYS)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue