Commit e5a27692 authored by Romain Bignon's avatar Romain Bignon

fix bad backend name (closes #342)

parent 490d0a6a
......@@ -47,7 +47,7 @@ class WeboobCfg(ConsoleApplication):
@ConsoleApplication.command('Add a configured backend')
def command_add(self, name, *options):
self.weboob.backends_loader.load_all()
if name not in [name for name, backend in self.weboob.backends_loader.loaded.iteritems()]:
if name not in [_name for _name, backend in self.weboob.backends_loader.loaded.iteritems()]:
logging.error(u'Backend "%s" does not exist.' % name)
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment