Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
linakrisztian committed Sep 4, 2024
1 parent 7e816e0 commit 9ffe277
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions r.in.wcs.worker/r.in.wcs.worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ def main():
if num_retry_unstable_connection == num_retry_max:
grass.fatal(
_(
f"Failed to download tif after {num_retry_max} retries."
"Failed to download tif after "
f"{num_retry_max} retries."
)
)
grass.warning(
_(
f"Broken tif downloaded, with error {gdalinfo_err}. Try to re-download. Retry {num_retry_unstable_connection}/{num_retry_max} ..."
f"Broken tif downloaded, with error {gdalinfo_err}."
" Try to re-download. "
f"Retry {num_retry_unstable_connection}/{num_retry_max} ..."
)
)
sleep(5)
Expand All @@ -209,12 +212,14 @@ def main():
if num_retry_no_connection == num_retry_max:
grass.fatal(
_(
f"Failed to reach the server.\nURL: {url} after {num_retry_max} retries."
f"Failed to reach the server.\nURL: {url} "
f"after {num_retry_max} retries."
)
)
grass.warning(
_(
f"Failed to reach the server.\nURL: {url}. With Error {e}. Retry {num_retry_no_connection}/{num_retry_max} ..."
f"Failed to reach the server.\nURL: {url}. With Error {e}. "
"Retry {num_retry_no_connection}/{num_retry_max} ..."
)
)
sleep(5)
Expand Down

0 comments on commit 9ffe277

Please sign in to comment.