aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/admin.py')
-rw-r--r--python/report_ops/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/report_ops/admin.py b/python/report_ops/admin.py
index 86d8bf02..2cb927b4 100644
--- a/python/report_ops/admin.py
+++ b/python/report_ops/admin.py
@@ -7,6 +7,7 @@ import pandas as pd
from serenitas.utils.remote import SftpClient
from serenitas.utils.db import dawn_engine, dbconn
from serenitas.analytics.dates import next_business_day, prev_business_day
+from serenitas.analytics.exceptions import MissingDataError
_suffix = {"ISOSEL": "IM", "CRSE": "IMCG"}
@@ -84,7 +85,7 @@ class CitcoReport:
df.to_sql(cls.table, dawn_engine, if_exists="append", index=False)
else:
- print(f"{fund}: {cls.table} report not ready for {date}")
+ raise MissingDataError(f"{fund}: {cls.table} report not ready for {date}")
class AccruedReport(