fix: plugin config
This commit is contained in:
parent
0ff5483f00
commit
bbc22fc8bc
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class PluginConfig(config.Config):
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
"""Read the config file"""
|
"""Read the config file"""
|
||||||
RawConfigParser.read(self, str(self.file_name))
|
RawConfigParser.read(self.configparser, str(self.file_name))
|
||||||
if not self.has_section(self.module_name):
|
if not self.has_section(self.module_name):
|
||||||
self.add_section(self.module_name)
|
self.add_section(self.module_name)
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class PluginConfig(config.Config):
|
||||||
"""Write the config to the disk"""
|
"""Write the config to the disk"""
|
||||||
try:
|
try:
|
||||||
with self.file_name.open('w') as fp:
|
with self.file_name.open('w') as fp:
|
||||||
RawConfigParser.write(self, fp)
|
RawConfigParser.write(self.configparser, fp)
|
||||||
return True
|
return True
|
||||||
except IOError:
|
except IOError:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue