Fix for error importing of exception class
This patch set fixes error while importing of ConnectionRefused exception class. Change-Id: I4aee677ccc25334ba9bd12633b1c487db2b1dd3e Closes-Bug: #1602214
This commit is contained in:
parent
918d2f0bbd
commit
5b914e8877
|
@ -165,7 +165,7 @@ class HTTPClient(object):
|
|||
url=url, e=e)
|
||||
except (socket.error, socket.timeout) as e:
|
||||
endpoint = self.endpoint
|
||||
raise exc.ConnectionRefused(
|
||||
raise exc.CommunicationError(
|
||||
_("Error communicating with %(endpoint)s %(e)s"),
|
||||
endpoint=endpoint, e=e)
|
||||
body_iter = ResponseBodyIterator(resp)
|
||||
|
|
Loading…
Reference in New Issue