weboob-config edit: fix error if there are private attributes on backend
(for example _enabled or _proxy)
This commit is contained in:
parent
83987f5b2e
commit
9731ae1b91
1 changed files with 2 additions and 0 deletions
|
|
@ -336,6 +336,8 @@ class ConsoleApplication(BaseApplication):
|
|||
try:
|
||||
config = config.load(self.weboob, module.name, name, params, nofail=True)
|
||||
for key, value in params.iteritems():
|
||||
if key.startswith('_'):
|
||||
continue
|
||||
config[key].set(value)
|
||||
config.save(edit=edit)
|
||||
print 'Backend "%s" successfully added.' % name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue