aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/report_ops/custodians.py4
-rw-r--r--python/report_ops/scotia.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 0dce3309..3d64fe68 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -216,10 +216,10 @@ class SCOTIA(Custodian, account="SCOTIA"):
try:
return download_scotia_report(date)
except (
- StaleElementReferenceException,
ElementNotInteractableException,
TimeoutException,
- ):
+ ) as e:
+ print(e)
raise ValueError(f"Scotia report not ready yet for {date}")
diff --git a/python/report_ops/scotia.py b/python/report_ops/scotia.py
index b0eefa1e..ffd39c70 100644
--- a/python/report_ops/scotia.py
+++ b/python/report_ops/scotia.py
@@ -1,5 +1,6 @@
import logging
import datetime
+import time
from contextlib import contextmanager
import re
@@ -49,6 +50,7 @@ def navigate_to_msg(driver, workdate):
).group()
date = datetime.datetime.strptime(date_string, "%Y-%m-%d").date()
if date == workdate:
+ time.sleep(5)
msg.click()
return
raise ValueError(f"Could not find a file for this date {workdate}")