all browser2 modules may import exceptions from weboob.tools.exceptions

This commit is contained in:
Romain Bignon 2014-05-17 13:58:33 +02:00
commit e434bb90e2
14 changed files with 21 additions and 20 deletions

View file

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