Commit 83e23dfb authored by Julien Montagnat's avatar Julien Montagnat Committed by Vincent Ardisson

[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.
parent f384971e
Pipeline #3280 passed with stages
in 14 minutes and 25 seconds
......@@ -109,6 +109,9 @@ class LoginPage(PartialHTMLPage):
# a expiré. Merci de bien vouloir vous identifier à nouveau.'
self.logger.warning('Restarting connection because it expired')
elif 'antivirus' in error_msg.lower():
self.logger.warning("This error message doesn't impact the success of the connection %s", error_msg)
assert not error_msg, "Unhandled error: '%s'" % error_msg
def login(self, login, passwd, redirect=False):
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