fix: correctly get transfer error
This commit is contained in:
parent
2ab29ac070
commit
a166b13be1
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class TransferSummary(BasePage):
|
|||
return id_transfer
|
||||
|
||||
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()
|
||||
raise TransferError('Unable to process transfer: %s' % errmsg)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue