aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/collateral/jpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/collateral/jpm.py b/python/collateral/jpm.py
index 5d4c4db9..5d2a5cf7 100644
--- a/python/collateral/jpm.py
+++ b/python/collateral/jpm.py
@@ -98,7 +98,7 @@ def collateral(d, dawn_trades, *, fund="BowdSt", **kwargs):
df = df.merge(dawn_trades, how="left", left_on="Deal ID", right_on="cpty_id")
missing_ids = df.loc[df.cpty_id.isnull(), "Deal ID"]
if not missing_ids.empty:
- logger.error(f"{missing_ids.tolist()} not in the database")
+ raise ValueError(f"{missing_ids.tolist()} not in the database for {fund}")
df = df[["folder", "MTM Amount", "IM Amount"]]
df = df.groupby("folder", dropna=False).sum()
df = df.sum(axis=1).to_frame(name="Amount")