Skip to content

Commit

Permalink
Format retry wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Jan 22, 2020
1 parent e3d385f commit 50c0a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def wrapped(*args, **kwargs):
logger.exception(exception)
wait = delay
for _ in range(retries):
message = f"Retrying in {wait} seconds..."
message = f"Retrying in {wait:.2f} seconds..."
logger.warning(message)
sleep(wait)
wait *= backoff
Expand Down

0 comments on commit 50c0a2e

Please sign in to comment.