fixes related to ModuleLoadError
This commit is contained in:
parent
6a242eb30f
commit
b6821b0567
5 changed files with 33 additions and 28 deletions
|
|
@ -173,11 +173,10 @@ class WeboobCfg(ReplApplication):
|
|||
print >>sys.stderr, 'You must specify a backend name. Hint: use the "backends" command.'
|
||||
return
|
||||
|
||||
backend = None
|
||||
try:
|
||||
backend = self.weboob.modules_loader.get_or_load_module(line)
|
||||
except ModuleLoadError, e:
|
||||
self.logger.debug(e)
|
||||
except ModuleLoadError:
|
||||
backend = None
|
||||
|
||||
if not backend:
|
||||
print 'Backend "%s" does not exist.' % line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue