Update related to the issue #30
This commit is contained in:
parent
0219fc69c6
commit
8051b3d499
@ -86,7 +86,9 @@ class Config(object):
|
|||||||
# Changes for anything not specified.
|
# Changes for anything not specified.
|
||||||
# Warning: can break your config if you play with it (eg. arrays, ints & bools).
|
# Warning: can break your config if you play with it (eg. arrays, ints & bools).
|
||||||
else:
|
else:
|
||||||
if len(value):
|
if isinstance(value, bool):
|
||||||
|
config[cat][key] = value
|
||||||
|
elif len(value):
|
||||||
config[cat][key] = value
|
config[cat][key] = value
|
||||||
|
|
||||||
with open(os.path.join(self.dir, "config.yaml"), "w") as yaml_file:
|
with open(os.path.join(self.dir, "config.yaml"), "w") as yaml_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user