From 4268e4a787e4c6aa7ee9bf18181e0145c961150f Mon Sep 17 00:00:00 2001 From: Ronald Maj Date: Mon, 29 Jul 2024 07:02:46 +0000 Subject: [PATCH] fix: remove unncessary time py module to ensure pipelines dont fail --- gnssanalysis/gn_download.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnssanalysis/gn_download.py b/gnssanalysis/gn_download.py index c767bba..d44ce13 100644 --- a/gnssanalysis/gn_download.py +++ b/gnssanalysis/gn_download.py @@ -22,7 +22,6 @@ import tarfile as _tarfile import hatanaka as _hatanaka import ftplib as _ftplib -import sleep as _sleep from ftplib import FTP_TLS as _FTP_TLS from pathlib import Path as _Path from typing import Optional as _Optional, Union as _Union, Tuple as _Tuple @@ -831,7 +830,7 @@ def download_file_from_cddis( logging.debug(f"Received an error ({e}) while try to download {filename}, retrying({retries}).") # Add some backoff time (exponential random as it appears to be contention based?) - _sleep(_random.uniform(0.0, 2.0**retries)) + _time.sleep(_random.uniform(0.0, 2.0**retries)) return download_filepath