Merge "Python 3 deprecated the logger.warn method in favor of warning"
This commit is contained in:
commit
038d5b8a18
@ -174,7 +174,7 @@ class HTTPClient(object):
|
||||
self.log_http_response(resp)
|
||||
|
||||
if 400 <= resp.status < 600:
|
||||
LOG.warn("Request returned failure status.")
|
||||
LOG.warning("Request returned failure status.")
|
||||
error_json = _extract_error_json(body_str)
|
||||
raise exceptions.from_response(
|
||||
resp, error_json.get('faultstring'),
|
||||
|
Loading…
Reference in New Issue
Block a user