From 83e23dfb14de592d53a08b1d174763860e37bb76 Mon Sep 17 00:00:00 2001 From: Julien Montagnat Date: Thu, 2 Jul 2020 16:32:09 +0200 Subject: [PATCH] [creditmutuel/cic] Fix assert error due to a non-impacting error message Impossible to login due to an assert in the on_load function. The error message as not impact on the success of the connection. --- modules/creditmutuel/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index db5d1f2fef..e0f901a9a2 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -109,6 +109,9 @@ def on_load(self): # a expiré. Merci de bien vouloir vous identifier à nouveau.' self.logger.warning('Restarting connection because it expired') return + elif 'antivirus' in error_msg.lower(): + self.logger.warning("This error message doesn't impact the success of the connection %s", error_msg) + return assert not error_msg, "Unhandled error: '%s'" % error_msg def login(self, login, passwd, redirect=False): -- GitLab