From 67ba5b42c0ab0d62a899cfa03cdc536ef0ed3440 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 29 Apr 2012 22:26:07 +0200 Subject: [PATCH] display accounts without history --- modules/hsbc/browser.py | 3 +++ modules/hsbc/pages/accounts.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/hsbc/browser.py b/modules/hsbc/browser.py index 2a36b473..4b9dece1 100644 --- a/modules/hsbc/browser.py +++ b/modules/hsbc/browser.py @@ -91,5 +91,8 @@ class HSBC(BaseBrowser): return None def get_history(self, link): + if link is None: + return iter([]) + self.location(link) return self.page.get_operations() diff --git a/modules/hsbc/pages/accounts.py b/modules/hsbc/pages/accounts.py index 603acfec..211b9a17 100644 --- a/modules/hsbc/pages/accounts.py +++ b/modules/hsbc/pages/accounts.py @@ -45,7 +45,7 @@ class AccountsListPage(BasePage): account._link_id = a.attrib['href'] if not 'CPT_IdPrestation' in account._link_id: - continue + account._link_id = None tag = tds[2].find('font') if tag is None: