[weboob] [PATCH 1/1] Fixed the CrAgr backend, allowing a second retrieving of the accounts list.

Xavier G xavier at tuxfamily.org
Sat Nov 13 01:04:11 CET 2010


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

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




More information about the weboob mailing list