summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2017-12-20 16:01:11 +0000
committerBen Copeland <ben.copeland@linaro.org>2017-12-20 16:01:11 +0000
commit8133355037e2bbd22b09c4330f1538b0379e44c0 (patch)
tree3e701b63c31cd1e50d4b4b85e2da5ce083598a63
parent3eab747ff8ea7a46f8e292ad6f439b9f609dd28a (diff)
downloadpublishing-api-8133355037e2bbd22b09c4330f1538b0379e44c0.tar.gz
Retry Logic: Fix print statements
Change-Id: I6004e7a595ef1caed014e7a1cced44cb4f14992f
-rwxr-xr-xlinaro-cp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/linaro-cp.py b/linaro-cp.py
index 24d8636..46a921c 100755
--- a/linaro-cp.py
+++ b/linaro-cp.py
@@ -33,7 +33,7 @@ class API_v1(object):
print("Unsuccessful status:", resp.status_code)
except Exception as e:
print(e)
- print('Upload failed for %s, retry attempt %s' % url, x)
+ print('Upload failed for %s, retry attempt %s' % (url, x))
time.sleep(2 * x + 1)
retry_count -= 1
@@ -148,7 +148,7 @@ class API_v3(API_v1):
print("Unsuccessful status:", resp.status_code)
except Exception as e:
print(e)
- print('Upload failed for %s, retrying in 2 seconds' % url)
+ print('Upload failed for %s, retry attempt %s' % (url, x))
time.sleep(2 * x + 1)
retry_count -= 1