From 54e8dac88b25e5f525f2f0c154e70a0e8352e572 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Sat, 10 Jul 2010 22:10:05 +0200 Subject: [PATCH] fix CallErrors imports --- weboob/applications/boobank/boobank.py | 4 ++-- weboob/applications/havesex/havesex.py | 2 +- weboob/tools/application/console.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index b4aa2a17..db36d232 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -43,7 +43,7 @@ class Boobank(ConsoleApplication): try: for backend, account in self.weboob.do('iter_accounts'): self.format(account, backend.name) - except weboob.CallErrors, errors: + except weboob.core.CallErrors, errors: for backend, error, backtrace in errors: if isinstance(error, weboob.tools.browser.BrowserIncorrectPassword): logging.error(u'Error: Incorrect password for backend %s' % backend.name) @@ -62,7 +62,7 @@ class Boobank(ConsoleApplication): for backend, operation in self.weboob.do(do): self.format(operation, backend.name) total += operation.amount - except weboob.CallErrors, errors: + except weboob.core.CallErrors, errors: for backend, error, backtrace in errors: if isinstance(error, AccountNotFound): logging.error(u'Error: account %s not found' % id) diff --git a/weboob/applications/havesex/havesex.py b/weboob/applications/havesex/havesex.py index 61d4491a..d8b7de5e 100644 --- a/weboob/applications/havesex/havesex.py +++ b/weboob/applications/havesex/havesex.py @@ -77,7 +77,7 @@ class HaveSex(PromptApplication): for optim in optims: try: self.service('Starting %s' % optim, 'start_optimization', optim) - except weboob.CallErrors, errors: + except weboob.core.CallErrors, errors: for backend, error, backtrace in errors: if isinstance(error, OptimizationNotFound): print 'Optimization "%s" not found' % optim diff --git a/weboob/tools/application/console.py b/weboob/tools/application/console.py index 43b9b612..89d0f5d0 100644 --- a/weboob/tools/application/console.py +++ b/weboob/tools/application/console.py @@ -23,7 +23,7 @@ from optparse import OptionGroup, OptionParser import re import sys -from weboob.core.bcall import CallErrors +from weboob.core import CallErrors from weboob.core.modules import BackendsConfig from .base import BackendNotFound, BaseApplication