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):