diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-15 21:13:39 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-15 21:13:39 +0200 |
commit | f05cbe308d9df4290208758e05b7403f57f18364 (patch) | |
tree | 20e183046ed2c95f3e1101d778cafdec84f33e7e | |
parent | 8f192b8a49614dffad176817a2be9d50f4df8696 (diff) |
In case of error, record error class too, not just error params.
Change-Id: I80432a83b8376ba36b3dcc2f1f2605278469be53
-rwxr-xr-x | linaro-cp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linaro-cp.py b/linaro-cp.py index d4fe6a8..85997af 100755 --- a/linaro-cp.py +++ b/linaro-cp.py @@ -43,7 +43,7 @@ class API_v1(object): time.sleep(2) return self._upload_data(url, data, headers, retry_count - 1) else: - return str(e) + return repr(e) code = self.curl.getinfo(pycurl.RESPONSE_CODE) if code not in (200, 201): |