Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jan 18, 2024
1 parent 74f63e9 commit 91381b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xclim/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def _get(
local_file.parent.mkdir(exist_ok=True, parents=True)

url = "/".join((github_url, "raw", branch, fullname.as_posix()))
logger.info("Fetching remote file: {}" % fullname.as_posix())
msg = f"Fetching remote file: {fullname.as_posix()}"
logger.info(msg)
try:
urlretrieve(url, local_file) # nosec
except HTTPError as e:
Expand All @@ -257,7 +258,8 @@ def _get(
raise FileNotFoundError(msg) from e
try:
url = "/".join((github_url, "raw", branch, md5_name.as_posix()))
logger.info("Fetching remote file md5: {}" % md5_name.as_posix())
msg = f"Fetching remote file md5: {format(md5_name.as_posix())}"
logger.info(msg)
urlretrieve(url, md5_file) # nosec
except (HTTPError, URLError) as e:
msg = (
Expand Down

0 comments on commit 91381b2

Please sign in to comment.