Weboob.iter_backends() does not return backend name anymore
This commit is contained in:
parent
3ea53cd2f0
commit
daa27da3ce
10 changed files with 20 additions and 20 deletions
|
|
@ -106,8 +106,8 @@ class WeboobCfg(ConsoleApplication):
|
|||
|
||||
@ConsoleApplication.command('Remove a backend')
|
||||
def command_remove(self, name):
|
||||
if not name in self.weboob.backends_config.iter_backends():
|
||||
try:
|
||||
self.weboob.backends_config.remove_backend(name)
|
||||
except ConfigParser.NoSectionError:
|
||||
print >>sys.stderr, "Backend '%s' does not exist" % name
|
||||
return 1
|
||||
|
||||
self.weboob.backends_config.remove_backend(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue