From 3e9929600d3eb9aa70e6eff9126e9dd2428e4790 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Fri, 30 Nov 2018 15:29:52 +0100 Subject: [PATCH] [caissedepargne] skip cenet if it's not alone and nuser isn't set If the user has both cenet and non-cenet and they didn't fill the nuser, skip cenet because it can't be used without. --- modules/caissedepargne/browser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/caissedepargne/browser.py b/modules/caissedepargne/browser.py index edefc43cbf..c5c3a0093e 100644 --- a/modules/caissedepargne/browser.py +++ b/modules/caissedepargne/browser.py @@ -246,6 +246,11 @@ def do_login(self): self.multi_type = True if self.inexttype < len(data['account']): + if data['account'][self.inexttype] == 'EU' and not self.nuser: + # when EU is present and not alone, it tends to come first + # if nuser is unset though, user probably doesn't want 'EU' + self.inexttype += 1 + self.typeAccount = data['account'][self.inexttype] else: assert False, 'should have logged in with at least one connection type' -- GitLab