Commit da3330c7 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[creditmutuel] follow redirect for conditions-generales

In this case we must follow the location redirection. This redirection
seems happens when some cookies expire and is not alway reproducible.
Indeed this url is catched by ConditionsPage and the empty 302
parsing failed.
parent 555c01cb
......@@ -365,7 +365,10 @@ class CreditMutuelBrowser(TwoFactorBrowser):
self.twofa_auth_state = {}
self.check_interactive()
elif location:
self.location(location, allow_redirects=False)
allow_redirects = 'conditions-generales' in location
# Don't stay on this 302
# This URL is still caught by ConditionsPage
self.location(location, allow_redirects=allow_redirects)
def check_auth_methods(self):
self.getCurrentSubBank()
......
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