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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/report_ops/custodians.py b/python/report_ops/custodians.py
index 288f81f6..2cc2dfbe 100644
--- a/python/report_ops/custodians.py
+++ b/python/report_ops/custodians.py
@@ -2,7 +2,10 @@ import datetime
from typing import ClassVar
from dataclasses import dataclass
import gpg
-from selenium.common.exceptions import StaleElementReferenceException
+from selenium.common.exceptions import (
+ StaleElementReferenceException,
+ ElementNotInteractableException,
+)
from serenitas.utils.exchange import ExchangeMessage, FileAttachment
from serenitas.utils.env import DAILY_DIR
@@ -209,5 +212,5 @@ class SCOTIA(Custodian, account="SCOTIA"):
def download_reports(date=datetime.date.today()):
try:
return download_scotia_report(date)
- except StaleElementReferenceException:
+ except (StaleElementReferenceException, ElementNotInteractableException):
raise ValueError(f"Scotia report not ready yet for {date}")