inform user about backend not found
This commit is contained in:
parent
b91093a92c
commit
11475c8325
2 changed files with 29 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ import sys
|
|||
from weboob.core.bcall import CallErrors
|
||||
from weboob.core.modules import BackendsConfig
|
||||
|
||||
from .base import BaseApplication
|
||||
from .base import BackendNotFound, BaseApplication
|
||||
from .formatters.instances import formatters
|
||||
from .results import ResultsCondition, ResultsConditionException
|
||||
|
||||
|
|
@ -233,3 +233,10 @@ class ConsoleApplication(BaseApplication):
|
|||
except ValueError:
|
||||
backend_name = None
|
||||
return _id, backend_name
|
||||
|
||||
@classmethod
|
||||
def run(klass, args=None):
|
||||
try:
|
||||
super(ConsoleApplication, klass).run(args)
|
||||
except BackendNotFound, e:
|
||||
logging.error(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue