aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral/cs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral/cs.py')
-rw-r--r--python/collateral/cs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/collateral/cs.py b/python/collateral/cs.py
index ff11c191..2fe89a31 100644
--- a/python/collateral/cs.py
+++ b/python/collateral/cs.py
@@ -97,6 +97,8 @@ def load_cs_positions(d: datetime.date, fund: str, legacy=False):
header=5,
skipfooter=29,
)
+ if df.empty:
+ raise ValueError(f"empty collateral statement for {d}")
df.columns = [c.replace("\n", " ").strip() for c in df.columns]
df = df[1:]
for i, e in df["Structure ID"].items():