ConfigParser.get doesn't return None on missing options

This commit is contained in:
lilydjwg 2018-05-06 12:18:28 +08:00
parent 26e7160a90
commit de1634a587
1 changed files with 1 additions and 1 deletions

View File

@ -203,4 +203,4 @@ class KeyManager:
config.add_section('keys')
def get_key(self, name):
return self.config.get('keys', name)
return self.config.get('keys', name, fallback=None)