diff --git a/modules/ing/browser.py b/modules/ing/browser.py index 55ef197d5455c2a39b3e114c8c09aab25caea091..7da9dcee400e08fddb778ce6072dc0aec2bf44bc 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -23,6 +23,7 @@ import time import json +from decimal import Decimal from requests.exceptions import SSLError from weboob.browser import LoginBrowser, URL, need_login @@ -179,6 +180,11 @@ def get_market_balance(self, account): self.accountspage.go() self.where = 'start' + if account.balance == Decimal('0'): + # some market accounts link with null balance redirect to logout page + # avoid it because it can crash iter accounts + return + self.change_space(account._space) data = self.get_investments_data(account)