aboutsummaryrefslogtreecommitdiffstats
path: root/python/mtm_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mtm_status.py')
-rw-r--r--python/mtm_status.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/mtm_status.py b/python/mtm_status.py
index a8e78254..f9d9305a 100644
--- a/python/mtm_status.py
+++ b/python/mtm_status.py
@@ -4,7 +4,7 @@ import pandas as pd
from serenitas.utils.db import dbconn
from psycopg2.errors import UniqueViolation
from zipfile import ZipFile
-from paramiko.ssh_exception import AuthenticationException
+from paramiko.ssh_exception import AuthenticationException, SSHException
import logging
@@ -15,7 +15,10 @@ def latest(f):
def run(conn, date):
try:
sftp = SftpClient.from_creds("mtm")
- except AuthenticationException as e:
+ except (
+ AuthenticationException,
+ SSHException,
+ ) as e:
logger.warning(e)
pass
files = [f for f in sftp.client.listdir("outbound") if date.strftime("%m%d%Y") in f]