diff --git a/ldms/python/ldmsd/parser_util.py b/ldms/python/ldmsd/parser_util.py index 737d156e9..51d5547ae 100644 --- a/ldms/python/ldmsd/parser_util.py +++ b/ldms/python/ldmsd/parser_util.py @@ -578,9 +578,9 @@ def build_stores(self, config): Return a dictionary keyed by the group name. Each dictionary entry is a list of stores in that group. """ - if 'stores' not in config: - return None stores = {} + if 'stores' not in config: + return stores if type(config['stores']) is not dict: raise ValueError(f'{LDMS_YAML_ERR}\n' f'store {DICT_ERR}\n'