Update related to the issue #30

This commit is contained in:
Félix Aime 2021-01-04 11:18:29 +01:00
parent 0219fc69c6
commit 8051b3d499

View File

@ -86,7 +86,9 @@ class Config(object):
# Changes for anything not specified.
# Warning: can break your config if you play with it (eg. arrays, ints & bools).
else:
if len(value):
if isinstance(value, bool):
config[cat][key] = value
elif len(value):
config[cat][key] = value
with open(os.path.join(self.dir, "config.yaml"), "w") as yaml_file: