From 26935e0906753d4bdbd8a288cf92f6ac12dfbb01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9lande=20Adrien?= Date: Tue, 5 Nov 2019 15:55:05 +0100 Subject: [PATCH] [lcl] send message for TransferBankError By default not indicating message make of the string a description which is not what we want. We want the message to be send to the client, not stocked in db. Closes: 14296@zendesk --- modules/lcl/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index ac9b8d8ca2..35796ab206 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -1162,7 +1162,7 @@ def on_load(self): # This aims to track input errors. script_error = CleanText(u"//script[contains(text(), 'if (\"true\"===\"true\")')]")(self.doc) if script_error: - raise TransferBankError(CleanText().filter(html2text(re.search(u'\.html\("(.*?)"\)', script_error).group(1)))) + raise TransferBankError(message=CleanText().filter(html2text(re.search(u'\.html\("(.*?)"\)', script_error).group(1)))) def can_transfer(self, account_transfer_id): for div in self.doc.xpath('//div[input[@id="indexCompteEmetteur"]]//div[@class="infoCompte" and not(@title)]'): -- GitLab