fix: correctly get transfer error

This commit is contained in:
Romain Bignon 2010-11-17 00:48:49 +01:00
commit a166b13be1

View file

@ -57,7 +57,7 @@ class TransferSummary(BasePage):
return id_transfer return id_transfer
if text.startswith(u"Votre virement n'a pas pu"): if text.startswith(u"Votre virement n'a pas pu"):
if p.find('br'): if p.find('br') is not None:
errmsg = to_unicode(p.find('br').tail).strip() errmsg = to_unicode(p.find('br').tail).strip()
raise TransferError('Unable to process transfer: %s' % errmsg) raise TransferError('Unable to process transfer: %s' % errmsg)
else: else: