diff options
author | Ben Copeland <ben.copeland@linaro.org> | 2017-12-20 16:01:11 +0000 |
---|---|---|
committer | Ben Copeland <ben.copeland@linaro.org> | 2017-12-20 16:01:11 +0000 |
commit | 8133355037e2bbd22b09c4330f1538b0379e44c0 (patch) | |
tree | 3e701b63c31cd1e50d4b4b85e2da5ce083598a63 /linaro-cp.py | |
parent | 3eab747ff8ea7a46f8e292ad6f439b9f609dd28a (diff) |
Retry Logic: Fix print statements
Change-Id: I6004e7a595ef1caed014e7a1cced44cb4f14992f
Diffstat (limited to 'linaro-cp.py')
-rwxr-xr-x | linaro-cp.py | 4 |
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 |