From 5e25f32776a5cdd63ad8f373a6e725b1f62de785 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 14 May 2015 13:05:40 +0200 Subject: [PATCH] banquepop: correctly return an iterator even if this isn't an investment account --- modules/banquepopulaire/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/banquepopulaire/browser.py b/modules/banquepopulaire/browser.py index ecf1dc18..c7c7a49f 100644 --- a/modules/banquepopulaire/browser.py +++ b/modules/banquepopulaire/browser.py @@ -182,7 +182,7 @@ class BanquePopulaire(Browser): account = self.get_account(account.id) params = account._params if params is None: - return + return iter([]) params['token'] = self.page.build_token(params['token']) self.location('/cyber/internet/ContinueTask.do', urllib.urlencode(params)) params = self.page.get_investment_page_params() @@ -191,3 +191,4 @@ class BanquePopulaire(Browser): self.location('https://www.linebourse.fr/Portefeuille') return self.page.get_investments() + return iter([])