inform user about backend not found

This commit is contained in:
Christophe Benz 2010-07-10 02:29:21 +02:00
commit 11475c8325
2 changed files with 29 additions and 7 deletions

View file

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