do not crash if the 'info' command can't find the specified backend

This commit is contained in:
Romain Bignon 2010-11-15 21:08:38 +01:00
commit 8e2551fed1

View file

@ -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