diff --git a/modules/banquepopulaire/browser.py b/modules/banquepopulaire/browser.py index 0fdbad91..f9fcf5bd 100644 --- a/modules/banquepopulaire/browser.py +++ b/modules/banquepopulaire/browser.py @@ -45,7 +45,7 @@ class BanquePopulaire(BaseBrowser): BaseBrowser.__init__(self, *args, **kwargs) def is_logged(self): - return self.page and not self.is_on_page(LoginPage) + return not self.is_on_page(LoginPage) def login(self): """ diff --git a/modules/bred/browser.py b/modules/bred/browser.py index 07c37439..9147b0bb 100644 --- a/modules/bred/browser.py +++ b/modules/bred/browser.py @@ -41,7 +41,7 @@ class BredBrowser(BaseBrowser): } def is_logged(self): - return self.page and not self.is_on_page(LoginPage) + return not self.is_on_page(LoginPage) def home(self): return self.location('https://www.bred.fr/mylittleform?type=1') diff --git a/modules/caissedepargne/browser.py b/modules/caissedepargne/browser.py index 5a330649..44dab7c3 100644 --- a/modules/caissedepargne/browser.py +++ b/modules/caissedepargne/browser.py @@ -36,7 +36,7 @@ class CaisseEpargne(BaseBrowser): } def is_logged(self): - return self.page and not self.is_on_page(LoginPage) + return not self.is_on_page(LoginPage) def home(self): self.location('https://www.caisse-epargne.fr/particuliers/ind_pauthpopup.aspx?mar=101®=&fctpopup=auth&cv=0') diff --git a/modules/cic/browser.py b/modules/cic/browser.py index 8378c597..dbea9ede 100644 --- a/modules/cic/browser.py +++ b/modules/cic/browser.py @@ -49,12 +49,13 @@ class CICBrowser(BaseBrowser): 'https://www.cic.fr/.*/fr/banque/.*Vir.*': TransfertPage, 'https://www.cic.fr/.*/fr/': EmptyPage, 'https://www.cic.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage, + 'https://www.cic.fr/.*/fr/validation/.*': EmptyPage, } currentSubBank = None def is_logged(self): - return self.page and not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage) + return not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage) def home(self): return self.location('https://www.cic.fr/sb/fr/banques/particuliers/index.html') diff --git a/modules/creditmutuel/browser.py b/modules/creditmutuel/browser.py index 9ed32d3b..105de61a 100644 --- a/modules/creditmutuel/browser.py +++ b/modules/creditmutuel/browser.py @@ -49,12 +49,13 @@ class CreditMutuelBrowser(BaseBrowser): 'https://www.creditmutuel.fr/.*/fr/banque/.*Vir.*': TransfertPage, 'https://www.creditmutuel.fr/.*/fr/': EmptyPage, 'https://www.creditmutuel.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage, + 'https://www.creditmutuel.fr/.*/fr/validation/.*': EmptyPage, } currentSubBank = None def is_logged(self): - return self.page and not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage) + return not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage) def home(self): return self.location('https://www.creditmutuel.fr/groupe/fr/index.html') diff --git a/modules/lcl/browser.py b/modules/lcl/browser.py index b30ffcbb..aaa7e5e6 100644 --- a/modules/lcl/browser.py +++ b/modules/lcl/browser.py @@ -51,7 +51,7 @@ class LCLBrowser(BaseBrowser): BaseBrowser.__init__(self, *args, **kwargs) def is_logged(self): - return self.page and not self.is_on_page(LoginPage) + return not self.is_on_page(LoginPage) def login(self): assert isinstance(self.username, basestring)