fix CallErrors imports
This commit is contained in:
parent
8f2fbdef31
commit
54e8dac88b
3 changed files with 4 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ class Boobank(ConsoleApplication):
|
||||||
try:
|
try:
|
||||||
for backend, account in self.weboob.do('iter_accounts'):
|
for backend, account in self.weboob.do('iter_accounts'):
|
||||||
self.format(account, backend.name)
|
self.format(account, backend.name)
|
||||||
except weboob.CallErrors, errors:
|
except weboob.core.CallErrors, errors:
|
||||||
for backend, error, backtrace in errors:
|
for backend, error, backtrace in errors:
|
||||||
if isinstance(error, weboob.tools.browser.BrowserIncorrectPassword):
|
if isinstance(error, weboob.tools.browser.BrowserIncorrectPassword):
|
||||||
logging.error(u'Error: Incorrect password for backend %s' % backend.name)
|
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):
|
for backend, operation in self.weboob.do(do):
|
||||||
self.format(operation, backend.name)
|
self.format(operation, backend.name)
|
||||||
total += operation.amount
|
total += operation.amount
|
||||||
except weboob.CallErrors, errors:
|
except weboob.core.CallErrors, errors:
|
||||||
for backend, error, backtrace in errors:
|
for backend, error, backtrace in errors:
|
||||||
if isinstance(error, AccountNotFound):
|
if isinstance(error, AccountNotFound):
|
||||||
logging.error(u'Error: account %s not found' % id)
|
logging.error(u'Error: account %s not found' % id)
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ class HaveSex(PromptApplication):
|
||||||
for optim in optims:
|
for optim in optims:
|
||||||
try:
|
try:
|
||||||
self.service('Starting %s' % optim, 'start_optimization', optim)
|
self.service('Starting %s' % optim, 'start_optimization', optim)
|
||||||
except weboob.CallErrors, errors:
|
except weboob.core.CallErrors, errors:
|
||||||
for backend, error, backtrace in errors:
|
for backend, error, backtrace in errors:
|
||||||
if isinstance(error, OptimizationNotFound):
|
if isinstance(error, OptimizationNotFound):
|
||||||
print 'Optimization "%s" not found' % optim
|
print 'Optimization "%s" not found' % optim
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ from optparse import OptionGroup, OptionParser
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from weboob.core.bcall import CallErrors
|
from weboob.core import CallErrors
|
||||||
from weboob.core.modules import BackendsConfig
|
from weboob.core.modules import BackendsConfig
|
||||||
|
|
||||||
from .base import BackendNotFound, BaseApplication
|
from .base import BackendNotFound, BaseApplication
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue