diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/bondallocation_email.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/bondallocation_email.py b/python/bondallocation_email.py index b698753d..5e51d0ab 100644 --- a/python/bondallocation_email.py +++ b/python/bondallocation_email.py @@ -65,11 +65,11 @@ if __name__ == "__main__": + "<br><br><br>Thanks,<br>Flint<br></p><br>" + bondtrade.to_html(index=False, formatters=formatters) ) + if not row.allocation_contacts: + raise NoContacts(f'There are no contacts for {row.trade_date} - {row.counterparty}') em.send_email( subject=subject, - to_recipients=row.allocation_contacts - if row.allocation_contacts - else raise NoContacts(f'There are no contacts for {row.trade_date} - {row.counterparty}'), + to_recipients=row.allocation_contacts, cc_recipients=cc_recipients, reply_to=("NYOps@lmcg.com",), body=HTMLBody(body), |
