From 0832f33a01615ae78949fab6fe0eefef5d422a80 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Thu, 31 Jan 2019 13:45:58 +0100 Subject: [PATCH] [cragr] Corrected error message during security check During login, the following error: "Un incident technique s'est produit lors de votre connexion. Veuillez ressaisir votre identifiant et votre code personnel." May contain one or two spaces between "votre" and "identifiant". In order to catch both correctly and retry the security check, I replaced the message with "identifiant et votre code personnel" that matches both. Closes: 35412@Sibi --- modules/cragr/api/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/api/browser.py b/modules/cragr/api/browser.py index 37b803e6ae..38271af529 100644 --- a/modules/cragr/api/browser.py +++ b/modules/cragr/api/browser.py @@ -134,7 +134,7 @@ def do_login(self): raise BrowserIncorrectPassword() if 'obtenir un nouveau code' in message: raise ActionNeeded(message) - technical_errors = ('Un incident technique', 'Veuillez ressaisir votre identifiant') + technical_errors = ('Un incident technique', 'identifiant et votre code personnel') if any(value in message for value in technical_errors): # If it is a technical error, we try login again form = self.get_security_form() -- GitLab