all browser2 modules may import exceptions from weboob.tools.exceptions
This commit is contained in:
parent
3e1dec519e
commit
e434bb90e2
14 changed files with 21 additions and 20 deletions
|
|
@ -19,7 +19,7 @@
|
|||
import hashlib
|
||||
|
||||
from weboob.tools.browser2 import LoginBrowser, URL, need_login
|
||||
from weboob.tools.browser import BrowserIncorrectPassword, BrokenPageError
|
||||
from weboob.tools.exceptions import BrowserIncorrectPassword, ParseError
|
||||
from weboob.capabilities.bank import Account, TransferError
|
||||
|
||||
from .pages import AccountsList, LoginPage, TitrePage, TitreHistory,\
|
||||
|
|
@ -162,7 +162,7 @@ class IngBrowser(LoginBrowser):
|
|||
self.valtransferpage.go()
|
||||
recap = self.page.recap()
|
||||
if len(list(recap)) == 0:
|
||||
raise BrokenPageError('Unable to find confirmation')
|
||||
raise ParseError('Unable to find confirmation')
|
||||
return self.page.recap()
|
||||
else:
|
||||
raise TransferError('Recipient not found')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue