From f439bd639c3092dd4a34bd96bf241d15f4b625f4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 10 Jul 2019 21:37:32 -0700 Subject: [PATCH] Make sure config has name and value when masking passwords --- plexpy/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/helpers.py b/plexpy/helpers.py index 79632e36..ff67c365 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -1182,7 +1182,7 @@ def split_args(args=None): def mask_config_passwords(config): if isinstance(config, list): for cfg in config: - if 'password' in cfg['name'] and cfg['value'] != '': + if 'password' in cfg.get('name', '') and cfg.get('value', '') != '': cfg['value'] = ' ' elif isinstance(config, dict):