Bugfix in config, r instead of w arg
This commit is contained in:
parent
7e99f7898a
commit
fc5c6488c1
@ -72,7 +72,7 @@ class Config():
|
|||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
try:
|
try:
|
||||||
with open(self.config_path + "bmc.json", 'r') as fh:
|
with open(self.config_path + "bmc.json", 'w') as fh:
|
||||||
fh.write(json.dumps(self.config))
|
fh.write(json.dumps(self.config))
|
||||||
except IOError:
|
except IOError:
|
||||||
tools.warning("Could not write config file.")
|
tools.warning("Could not write config file.")
|
||||||
|
Loading…
Reference in New Issue
Block a user