fix configparser usage bug

This commit is contained in:
lilydjwg 2018-05-05 23:49:33 +08:00
parent 82dba4a965
commit 39e79631fc
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class KeyManager:
def __init__(self, file):
self.config = config = configparser.ConfigParser(dict_type=dict)
if file is not None:
config.read_file(file)
config.read([file])
def get_key(self, name):
return self.config.get('keys', name)