Commit 958e8f78 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[binck] Do not try to fetch investments if there is no money on the account

There will never be any investment nor liquidity.
parent 320b86b5
......@@ -156,6 +156,8 @@ class BinckBrowser(LoginBrowser):
@need_login
def iter_investment(self, account):
if account.balance == 0:
return
# Start with liquidities:
if account._liquidity:
yield create_french_liquidity(account._liquidity)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment