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:
Alexandr Stavitskiy 2016-07-12 16:09:04 +03:00
parent 918d2f0bbd
commit 5b914e8877
1 changed files with 1 additions and 1 deletions

View File

@ -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)