aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/__main__.py')
-rw-r--r--python/report_ops/__main__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index 4bc1a4da..f7b43c9c 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -1,6 +1,7 @@
import logging
import argparse
import datetime
+from pandas.errors import EmptyDataError
from serenitas.analytics.dates import prev_business_day
from serenitas.utils.db import dbconn
@@ -92,7 +93,10 @@ if args.cash_reports or args.wire_reports:
for custodian in custodians:
get_custodian_download_fun(custodian)(args.date, fund, em=em)
report = Report[custodian](args.date, fund)
- report.commit()
+ try:
+ report.commit()
+ except (MissingDataError, EmptyDataError) as e:
+ logger.info(e)
if args.isosel_reports:
for fund in ("ISOSEL",):