Commit 85e6031f authored by Edouard Lambert's avatar Edouard Lambert Committed by Vincent A

[bnporc] handle another end of session

parent 7879b210
......@@ -298,8 +298,10 @@ class BNPPage(LoggedPage, JsonPage):
def on_load(self):
code = cast(self.get('codeRetour'), int, 0)
message = self.get('message', '')
if code == -30:
# -10 : "Utilisateur non authentifie"
if code == -30 or (code == -10 and "non authentifie" in message):
self.logger.debug('End of session detected, try to relog...')
self.browser.do_login()
elif code:
......
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