Skip to content

Commit

Permalink
new: usr: still working on #87 [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jduncan committed Feb 21, 2019
1 parent e61e749 commit f984db0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions soscleaner/soscleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,13 @@ def _read_early_config_options(self):
config = ConfigParser.ConfigParser()
if os.path.exists(self.config_file):
config.read(self.config_file)
self.logger.con_out("Loading config file for default values - %s", self.config_file)

# load in default config values
self.loglevel = config.get('Default', 'loglevel').upper()
self.root_domain = config.get('Default', 'root_domain')

except Exception, e: #pragma: no cover
self.logger.exception(e)
self.logger.con_out("READ_CONFIG_OPTIONS_ERROR - Unable to load configs from file %s - Continuing without those values", self.config_file)
except Exception: # pragma: no cover
pass

def _read_later_config_options(self):
"""Reads an optional configuration file to load often-used defaults for
Expand Down

0 comments on commit f984db0

Please sign in to comment.