Commit ff8b5aeb authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[amundi/caels] Skip iter_investments for accounts with null balance

If there is no money on the account, no need to do requests just to
figure out there is no investment on it.
parent 4dbd8a84
......@@ -56,6 +56,9 @@ class AmundiBrowser(LoginBrowser):
def iter_investment(self, account):
if account.balance == 0:'Account %s has a null balance, no investment available.', account.label)
headers = {'X-noee-authorization': 'noeprd %s' % self.token}
for inv in
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