[weboob] [PATCH 1/1] The CrAgr backend now systematically goes back to the home page when get_accounts_list is triggered.

xavier at tuxfamily.org xavier at tuxfamily.org
Sat Dec 25 14:58:41 CET 2010


From: Xavier G <xavier at tuxfamily.org>


Signed-off-by: Xavier G <xavier at tuxfamily.org>
---
 weboob/backends/cragr/browser.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/weboob/backends/cragr/browser.py b/weboob/backends/cragr/browser.py
index 519e48f..bb31fc5 100644
--- a/weboob/backends/cragr/browser.py
+++ b/weboob/backends/cragr/browser.py
@@ -67,8 +67,7 @@ class Cragr(BaseBrowser):
             raise BrowserIncorrectPassword()
 
     def get_accounts_list(self):
-        if not self.is_on_page(pages.AccountsList) or self.page.is_account_page():
-            self.home()
+        self.home()
         return self.page.get_list()
 
     def get_account(self, id):
-- 
1.7.2.3




More information about the weboob mailing list