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: