mirror of
https://github.com/evilhero/mylar
synced 2025-02-21 21:46:54 +00:00
FIX: fix for initial startup not creating values for config.ini successfully
This commit is contained in:
parent
40c945376a
commit
d86f4c2cb5
1 changed files with 6 additions and 2 deletions
|
@ -521,8 +521,12 @@ class Config(object):
|
|||
myval = {'status': True, 'value': config.getboolean(section, inikey)}
|
||||
except Exception:
|
||||
if definition_type == str:
|
||||
myval = {'status': True, 'value': config.get(section, inikey, raw=True)}
|
||||
myval = {'status': False, 'value': None}
|
||||
try:
|
||||
myval = {'status': True, 'value': config.get(section, inikey, raw=True)}
|
||||
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
|
||||
myval = {'status': False, 'value': None}
|
||||
else:
|
||||
myval = {'status': False, 'value': None}
|
||||
return myval
|
||||
|
||||
def _define(self, name):
|
||||
|
|
Loading…
Reference in a new issue