Skip to content

Commit 67928f1

Browse files
committed
NPI-4443 update gn_download.py to use warnings.warn() for warnings
1 parent 7ada270 commit 67928f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

gnssanalysis/gn_download.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,9 @@ def download_file_from_cddis(
867867
download_filepath.unlink()
868868
raise
869869
backoff = _random.uniform(0.0, 2.0 ** retries)
870-
logging.warning(f"Error downloading {filename}: {e} "
871-
f"(retry {retries}/{max_retries}, backoff {backoff:.1f}s)")
870+
_warnings.warn(
871+
f"Error downloading {filename}: {e} " f"(retry {retries}/{max_retries}, backoff {backoff:.1f}s)"
872+
)
872873
_time.sleep(backoff)
873874

874875
raise Exception("Unexpected fallthrough in download_file_from_cddis.")

0 commit comments

Comments
 (0)