fix bad backend name (closes #342)
This commit is contained in:
parent
490d0a6a39
commit
e5a27692b5
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class WeboobCfg(ConsoleApplication):
|
||||||
@ConsoleApplication.command('Add a configured backend')
|
@ConsoleApplication.command('Add a configured backend')
|
||||||
def command_add(self, name, *options):
|
def command_add(self, name, *options):
|
||||||
self.weboob.backends_loader.load_all()
|
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)
|
logging.error(u'Backend "%s" does not exist.' % name)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue