From: Alfredo Deza Date: Wed, 19 Nov 2014 20:09:09 +0000 (-0500) Subject: allow a stringified version of the http status code X-Git-Tag: v1.2~5^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9c1fcfe6056dbb8af1fc371cda246c12575ccc7;p=radosgw-agent.git allow a stringified version of the http status code Signed-off-by: Alfredo Deza --- diff --git a/radosgw_agent/client.py b/radosgw_agent/client.py index bd39d5b..9be5681 100644 --- a/radosgw_agent/client.py +++ b/radosgw_agent/client.py @@ -71,6 +71,7 @@ def parse_endpoint(endpoint): class HttpError(ClientException): def __init__(self, code, body): self.code = code + self.str_code = str(code) self.body = body self.message = 'Http error code %s content %s' % (code, body) def __str__(self):