aboutsummaryrefslogtreecommitdiffstats
path: root/python/bondallocation_email.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/bondallocation_email.py')
-rw-r--r--python/bondallocation_email.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/bondallocation_email.py b/python/bondallocation_email.py
index 5e51d0ab..76fb9130 100644
--- a/python/bondallocation_email.py
+++ b/python/bondallocation_email.py
@@ -66,7 +66,13 @@ if __name__ == "__main__":
+ bondtrade.to_html(index=False, formatters=formatters)
)
if not row.allocation_contacts:
+<<<<<<< HEAD
raise NoContacts(f'There are no contacts for {row.trade_date} - {row.counterparty}')
+=======
+ raise Exception(
+ f"There are no contacts for {row.trade_date} - {row.counterparty}"
+ )
+>>>>>>> 4153f0a6 (Fixed to raise Exception)
em.send_email(
subject=subject,
to_recipients=row.allocation_contacts,