aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/report_ops/custodians.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 7732e534..0dce3309 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -225,7 +225,7 @@ class SCOTIA(Custodian, account="SCOTIA"):
class GSTXB(Custodian, account="GSTXB"):
@staticmethod
- def download_reports(date=datetime.date.today()):
+ def download_reports(date=datetime.date(2023, 5, 17)):
sftp = Client.from_creds("gstx")
pattern = r"(\d{4}-\d{2}-\d{2}T\d{2}_\d{2}_\d{2}\.\d{6})"
for f in sftp.client.listdir():
@@ -240,3 +240,5 @@ class GSTXB(Custodian, account="GSTXB"):
with open(dest, "w") as csvFile:
text = plaintext.decode("utf-8")
csvFile.write(text)
+ return
+ raise ValueError(f"GS TXB report not ready yet for {date}")