Commit e7f6851b authored by Andras Bartok's avatar Andras Bartok Committed by Romain Bignon

[lcl] Fix transfer error when no label given

parent 464a74de
......@@ -147,6 +147,9 @@ class LCLModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact,
def transfer_check_label(self, old, new):
old = re.sub(r"[/<\?='!\+:]", '', old).strip()
old = old.encode('latin-1', errors='replace').decode('latin-1')
# if no reason given, the site changes the label
if not old and ("INTERNET-FAVEUR" in new):
return True
return super(LCLModule, self).transfer_check_label(old, new)
@only_for_websites('par', 'elcl', 'pro')
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