Better error message

This commit is contained in:
Florent 2012-09-25 15:53:14 +02:00 committed by Romain Bignon
commit 52493ca98b
2 changed files with 1 additions and 3 deletions

View file

@ -146,7 +146,7 @@ class Ing(BaseBrowser):
self.page.transfer(recipient, amount, reason)
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
if not self.is_on_page(TransferConfirmPage):
raise TransferError("Recipient not found")
raise TransferError("Invalid transfer (no confirmation page)")
else:
self.page.confirm(self.password)
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')

View file

@ -160,8 +160,6 @@ class TransferConfirmPage(BasePage):
if font.attrib.get('class') == "vide":
realpasswd += password[i]
i += 1
# TODO: trouver le bon formulaire, y'en a plein la page...
# Puis copier le code de login.py
confirmform = None
for form in self.document.xpath('//form'):
try: