diff --git a/modules/ing/browser.py b/modules/ing/browser.py index 848cc4f35915a7b4e8a3692dd20d122665553aa8..5e2cc9f9635b79291d509b8fe1dd4e8b4f6a3971 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -142,7 +142,6 @@ def do_login(self): @need_login def set_multispace(self): - self.accountspage.go() self.where = 'start' self.page.load_space_page() @@ -211,8 +210,11 @@ def get_accounts_on_space(self, space, fill_account=True): for acc in self.page.get_list(): acc._space = space - if get_iban: - self.get_iban(acc) + if fill_account: + try: + self.fill_account(acc) + except ServerError: + pass assert not find_object(accounts_list, id=acc.id), 'There is a duplicate account.' accounts_list.append(acc) @@ -244,8 +246,11 @@ def get_accounts_list(self, space=None, fill_account=True): else: for acc in self.page.get_list(): acc._space = None - if get_iban: - self.get_iban(acc) + if fill_account: + try: + self.fill_account(acc) + except ServerError: + pass yield acc for loan in self.iter_detailed_loans(): @@ -290,7 +295,6 @@ def return_from_loan_site(self): def get_account(self, _id, space=None): return find_object(self.get_accounts_list(fill_account=False, space=space), id=_id, error=AccountNotFound) - def go_account_page(self, account): data = {"AJAX:EVENTS_COUNT": 1, "AJAXREQUEST": "_viewRoot",