diff options
Diffstat (limited to 'python/collateral')
| -rw-r--r-- | python/collateral/baml_isda.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/collateral/baml_isda.py b/python/collateral/baml_isda.py index 2d39ec1a..685c0a12 100644 --- a/python/collateral/baml_isda.py +++ b/python/collateral/baml_isda.py @@ -64,7 +64,7 @@ paths = { } -def read_secure_message(dest, logger): +def read_secure_message(msg, dest, logger): soup = BeautifulSoup(msg.body, features="lxml") a = soup.find("a") url = urlsplit(a["href"]) @@ -86,7 +86,7 @@ def download_files(em, d=None, count=20, *, fund="Serenitas", **kwargs): for msg in emails: match msg.sender.name: case "us_otc_client_valuation@baml.com" | "us_otc_client_valuation@bofa.com" if msg.body.body_type == "HTML": - read_secure_message(DATA_DIR, logger) + read_secure_message(msg, DATA_DIR, logger) case "us_otc_client_valuation@baml.com" | "us_otc_client_valuation@bofa.com" | "bank_of_america_collateral_operations@bankofamerica.com": for attach in msg.attachments: |
