aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/wires.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/wires.py')
-rw-r--r--python/report_ops/wires.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/report_ops/wires.py b/python/report_ops/wires.py
index dbf09af6..094ae967 100644
--- a/python/report_ops/wires.py
+++ b/python/report_ops/wires.py
@@ -8,6 +8,7 @@ import pandas as pd
from serenitas.ops.trade_dataclasses import Deal, Ccy
from serenitas.ops.dataclass_mapping import Fund
from serenitas.analytics.dates import prev_business_day
+from serenitas.analytics.exceptions import MissingDataError
from serenitas.utils.env import DAILY_DIR
from .misc import get_dir, dt_from_fname, Custodian
@@ -55,7 +56,7 @@ class WireReport(Deal, table_name="custodian_wires", deal_type="custodian_wires"
default=None,
)
if not p:
- raise ValueError(
+ raise MissingDataError(
f"No reports found for fund: {prefix.split('_')[-1]} date: {date}"
)
return p