Commit 1bd5c64d authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[bp] avoid bug for empty market account

We returned a None liquidity object. We now return an empty list.

Closes: 10880@zendesk
parent f66600cc
......@@ -418,7 +418,10 @@ class BPBrowser(LoginBrowser, StatesMixin):
if account.type in (account.TYPE_PEA, account.TYPE_MARKET):
investments = list(self.linebourse.iter_investment(
liquidity = self.linebourse.get_liquidity(
if liquidity:
# avoid to append None
return investments
if account.type != Account.TYPE_LIFE_INSURANCE:
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