aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/custodians.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/custodians.py')
-rw-r--r--python/report_ops/custodians.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 905ca9c2..edf2af5f 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -10,7 +10,7 @@ from typing import ClassVar
from dataclasses import dataclass
-def upload_to_custodian(account, trade_date, upload, em):
+def upload_to_custodian(account, trade_date, upload):
_service = {"BBH": "BRINKER", "UMB": "UMB"}
custodian = Service[_service[account]]
conn = BondDeal._conn
@@ -68,6 +68,7 @@ def upload_to_custodian(account, trade_date, upload, em):
custodian.staging_queue.clear()
conn.commit()
if upload:
+ em = ExchangeMessage()
custodian.upload(buf, dest.name, confirm=account != "UMB")
cc = _cc_recipients.get(custodian.name, ("NYOPS@lmcg.com",))
em.send_email(