core: better management of default value in getConfig
This commit is contained in:
parent
97630ccab9
commit
6b20989ecc
1 changed files with 21 additions and 11 deletions
|
|
@ -151,7 +151,7 @@ class MiscAccount(object):
|
|||
self.__delete_account_id = host.registerCallback(self.__deleteAccountCb, with_data=True)
|
||||
|
||||
def getConfig(self, name):
|
||||
return self.host.memory.getConfig(CONFIG_SECTION, name) or default_conf[name]
|
||||
return self.host.memory.getConfig(CONFIG_SECTION, name, default_conf[name])
|
||||
|
||||
def _registerAccount(self, email, password, profile):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue