aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/external_deriv_marks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/external_deriv_marks.py b/python/external_deriv_marks.py
index 9857ae27..71c8226b 100644
--- a/python/external_deriv_marks.py
+++ b/python/external_deriv_marks.py
@@ -307,7 +307,10 @@ def jpm_navs(date: datetime.date = None, fund: str = "BowdSt"):
def barc_navs(date: datetime.date = None, fund: str = "Serenitas"):
if fund in ("Brinker", "BowdSt"):
raise ValueError
- df = load_file(date, fund, "Exposure Report")
+ try:
+ df = load_file(date, fund, "Exposure Report")
+ except FileNotFoundError:
+ raise ValueError(f"BARC: no position statement for {date}")
df = df[
[
"Trade Reference",