aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral')
-rw-r--r--python/collateral/barclays.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/collateral/barclays.py b/python/collateral/barclays.py
index d3ddfbf5..999e5b28 100644
--- a/python/collateral/barclays.py
+++ b/python/collateral/barclays.py
@@ -16,6 +16,8 @@ def load_file(d, fund, pattern):
"Serenitas": "Serenitas Credit Gamma Master Fund LP",
"Selene": "Iso Selene Inc",
}
+ if fund not in file_mapping:
+ raise FileNotFoundError(f"No ISDA with Barclays for {fund}")
try:
fname = next(
(DAILY_DIR / fund / "BARCLAYS_reports").glob(