diff options
Diffstat (limited to 'python/report_ops/custodians.py')
| -rw-r--r-- | python/report_ops/custodians.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py index f6ef4c6c..aaba9fa2 100644 --- a/python/report_ops/custodians.py +++ b/python/report_ops/custodians.py @@ -59,12 +59,13 @@ def upload_to_custodian(account, trade_date, upload, em): conn.commit() if upload: custodian.upload(buf, dest.name, confirm=account != "UMB") + cc = _cc_recipients.get(custodian.name, ("NYOPS@lmcg.com",)) em.send_email( f"{account}: Bond Positions Uploaded for {trade_date}", "Hi, \nWe've just uploaded the positions via SFTP. File receipt attached to this email", - _recipients.get(account, _cc_recipients[custodian.name]), - cc_recipients=_cc_recipients[custodian.name], - reply_to=_cc_recipients[custodian.name], + _recipients.get(account, cc), + cc_recipients=cc, + reply_to=cc, attach=(FileAttachment(name=dest.name, content=buf),), ) |
