aboutsummaryrefslogtreecommitdiffstats
path: root/python/quantifi_upload_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/quantifi_upload_status.py')
-rw-r--r--python/quantifi_upload_status.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/python/quantifi_upload_status.py b/python/quantifi_upload_status.py
index 32aa8267..e32d8b4a 100644
--- a/python/quantifi_upload_status.py
+++ b/python/quantifi_upload_status.py
@@ -8,18 +8,12 @@ from report_ops.logger import get_logger
logger = get_logger(__name__)
-@contextmanager
-def retry_on_exception_sftp():
- yield
-
-
def close_and_reconnect():
retries = 5
for i in range(retries):
try:
- with retry_on_exception_sftp():
- QuantifiRemote._client.client.close()
- QuantifiRemote.init_client()
+ QuantifiRemote._client.client.close()
+ QuantifiRemote.init_client()
except (SSHException, OSError) as e:
if i == retries - 1:
raise e