Commit 087c0347 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[axabanque] Transfer: iban checking debug

On the website, the transfer validation page does not give the iban
information. Consequently, to avoid a crash when the old or new iban is empty we
force a skip of the account iban checking.
parent c342ea15
......@@ -19,7 +19,7 @@
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, RecipientNotFound
from weboob.capabilities.base import find_object, NotAvailable
from weboob.capabilities.base import find_object, NotAvailable, empty
from weboob.capabilities.bank import Account, TransferInvalidLabel
from weboob.capabilities.profile import CapProfile
from weboob.capabilities.bill import CapDocument, Subscription, Document, DocumentNotFound, SubscriptionNotFound
......@@ -112,7 +112,7 @@ class AXABanqueModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapDoc
def transfer_check_account_iban(self, old, new):
# Skip origin account iban check and force origin account iban
if new is NotAvailable:
if empty(new) or empty(old):
self.logger.warning(
'Origin account iban check (%s) is not possible because iban is currently not available',
old,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment