diff options
Diffstat (limited to 'src/lib/Settings.py')
-rw-r--r-- | src/lib/Settings.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/Settings.py b/src/lib/Settings.py index 44ba3b849..f5092d221 100644 --- a/src/lib/Settings.py +++ b/src/lib/Settings.py @@ -78,16 +78,16 @@ class Settings(object): logger.error("Content of config file '%s' is not valid. Correct it!\n%s\n" % (self.CONFIG_FILE, e)) raise SystemExit, 1 - for section in locations: - if cfp.has_section(section): - for key, location in locations[section]: - try: - if key in cookers: + for section in locations: + if cfp.has_section(section): + for key, location in locations[section]: + try: + if key in cookers: setattr(self, key, cookers[key](cfp.get(section, location))) - else: + else: setattr(self, key, cfp.get(section, location)) - except: - pass + except: + pass settings = Settings() |