From a04819e111918a542e29de05132282d0f8fc0a6e Mon Sep 17 00:00:00 2001 From: Guillaume Risbourg Date: Wed, 11 Mar 2020 15:17:26 +0100 Subject: [PATCH] [lcl] Strip new recipient label New recipients labels are stripped on the website. Without stripping them, it sometimes failed the assert in `check_values` because of the trailing space we still had. Closes: 61817@sibi --- modules/lcl/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lcl/module.py b/modules/lcl/module.py index cb0fe3b728..948f373cb3 100644 --- a/modules/lcl/module.py +++ b/modules/lcl/module.py @@ -112,7 +112,7 @@ def iter_transfer_recipients(self, origin_account): @only_for_websites('par', 'pro', 'elcl') def new_recipient(self, recipient, **params): # Recipient label has max 15 alphanumrical chars. - recipient.label = ' '.join(w for w in re.sub('[^0-9a-zA-Z ]+', '', recipient.label).split())[:15] + recipient.label = ' '.join(w for w in re.sub('[^0-9a-zA-Z ]+', '', recipient.label).split())[:15].strip() return self.browser.new_recipient(recipient, **params) @only_for_websites('par', 'pro', 'elcl') -- GitLab