mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-06 13:32:04 +00:00
add an empty "keys" section
This commit is contained in:
parent
54f474cfb2
commit
26e7160a90
@ -199,6 +199,8 @@ class KeyManager:
|
||||
self.config = config = configparser.ConfigParser(dict_type=dict)
|
||||
if file is not None:
|
||||
config.read([file])
|
||||
else:
|
||||
config.add_section('keys')
|
||||
|
||||
def get_key(self, name):
|
||||
return self.config.get('keys', name)
|
||||
|
Loading…
Reference in New Issue
Block a user