fix configparser usage bug
This commit is contained in:
parent
82dba4a965
commit
39e79631fc
|
@ -198,7 +198,7 @@ class KeyManager:
|
||||||
def __init__(self, file):
|
def __init__(self, file):
|
||||||
self.config = config = configparser.ConfigParser(dict_type=dict)
|
self.config = config = configparser.ConfigParser(dict_type=dict)
|
||||||
if file is not None:
|
if file is not None:
|
||||||
config.read_file(file)
|
config.read([file])
|
||||||
|
|
||||||
def get_key(self, name):
|
def get_key(self, name):
|
||||||
return self.config.get('keys', name)
|
return self.config.get('keys', name)
|
||||||
|
|
Loading…
Reference in New Issue