From 958e8f78b3c59e34650fa5eff064db79f7f7ac81 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 14 May 2019 11:48:02 +0200 Subject: [PATCH] [binck] Do not try to fetch investments if there is no money on the account There will never be any investment nor liquidity. --- modules/binck/browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/binck/browser.py b/modules/binck/browser.py index 29f2b56104..5f6137d509 100644 --- a/modules/binck/browser.py +++ b/modules/binck/browser.py @@ -156,6 +156,8 @@ def iter_accounts(self): @need_login def iter_investment(self, account): + if account.balance == 0: + return # Start with liquidities: if account._liquidity: yield create_french_liquidity(account._liquidity) -- GitLab