Skip to content

Commit

Permalink
Merge pull request #36 from GeoscienceAustralia/NPI-3197-transfer-dow…
Browse files Browse the repository at this point in the history
…nload-functions

NPI-3197 - Fix to previous transfer functions PR
  • Loading branch information
ronaldmaj authored Jul 29, 2024
2 parents a2f346d + 4268e4a commit 027701b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gnssanalysis/gn_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 027701b

Please sign in to comment.