Bugfix in config, r instead of w arg

This commit is contained in:
Phyks 2014-06-30 00:38:29 +02:00
parent 7e99f7898a
commit fc5c6488c1

View File

@ -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.")