do not crash if the 'info' command can't find the specified backend
This commit is contained in:
parent
dd6dbe005e
commit
8e2551fed1
1 changed files with 4 additions and 3 deletions
|
|
@ -168,9 +168,10 @@ class WeboobCfg(ReplApplication):
|
|||
if not line:
|
||||
print 'No backend name was specified.'
|
||||
return
|
||||
try:
|
||||
backend = self.weboob.modules_loader.get_or_load_module(line)
|
||||
except KeyError:
|
||||
|
||||
backend = self.weboob.modules_loader.get_or_load_module(line)
|
||||
|
||||
if not backend:
|
||||
print 'No such backend: "%s"' % line
|
||||
return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue