Commit bd95b40f by Yvon Kerdoncuff

get_members_capital_at_date : instead of None, which is not iterable, return dic…

get_members_capital_at_date : instead of None, which is not iterable, return dic with key error in case of failure
parent 68b54a00
Pipeline #3772 failed with stage
in 44 seconds
...@@ -314,4 +314,4 @@ def get_members_capital_at_date(date,only_active): ...@@ -314,4 +314,4 @@ def get_members_capital_at_date(date,only_active):
return OdooAPI().execute("lacagette.exports", 'get_members_capital_at_date', {'date': date, 'only_active': only_active}) return OdooAPI().execute("lacagette.exports", 'get_members_capital_at_date', {'date': date, 'only_active': only_active})
except Exception as e: except Exception as e:
coop_logger.error("Erreur get_members_capital_at_date : %s", str(e)) coop_logger.error("Erreur get_members_capital_at_date : %s", str(e))
return None return {'error': "Erreur get_members_capital_at_date : " + str(e)}
\ No newline at end of file \ No newline at end of file
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