From beb75ff6d1e1bae3a59c378523845a77ca9ba0d3 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 20 Nov 2017 03:14:30 -0600 Subject: [PATCH] Fixed an issue in #102 --- src/config_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config_utils.py b/src/config_utils.py index e6d926c5..f2cc10e6 100644 --- a/src/config_utils.py +++ b/src/config_utils.py @@ -9,8 +9,6 @@ log = getLogger("config_utils") class ConfigLoadError(Exception): pass def load_config(config_path, configspec_path=None, copy=True, *args, **kwargs): - if os.path.exists(config_path): - clean_config(config_path) spec = ConfigObj(configspec_path, encoding='UTF8', list_values=False, _inspec=True) try: config = ConfigObj(infile=config_path, configspec=spec, create_empty=True, encoding='UTF8', *args, **kwargs)