aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/report_ops/custodians.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 2cc2dfbe..8ee2d321 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -5,6 +5,7 @@ import gpg
from selenium.common.exceptions import (
StaleElementReferenceException,
ElementNotInteractableException,
+ TimeoutException,
)
from serenitas.utils.exchange import ExchangeMessage, FileAttachment
@@ -212,5 +213,9 @@ class SCOTIA(Custodian, account="SCOTIA"):
def download_reports(date=datetime.date.today()):
try:
return download_scotia_report(date)
- except (StaleElementReferenceException, ElementNotInteractableException):
+ except (
+ StaleElementReferenceException,
+ ElementNotInteractableException,
+ TimeoutException,
+ ):
raise ValueError(f"Scotia report not ready yet for {date}")