diff options
author | Nilakhya <nilakhya.chatterjee@globallogic.com> | 2014-01-30 19:36:19 +0530 |
---|---|---|
committer | Nilakhya <nilakhya.chatterjee@globallogic.com> | 2014-01-30 22:52:18 +0530 |
commit | 1fe0e4ee604ea9b6951eb3cc8e573b0e3b81bfde (patch) | |
tree | 7be8bed392854010aee3913c2e567b0ef5fdae2f /troveclient/client.py | |
parent | 11c45de9e0474e14f787f2e5e2bf26283fcb02f0 (diff) | |
download | python-troveclient-1fe0e4ee604ea9b6951eb3cc8e573b0e3b81bfde.tar.gz |
Fixes troveclient raising undefined exception ConnectionError
Reason: ConnectionError exception is raised which is not defined in
python-troveclient/troveclient/openstack/common/apiclient/exceptions.py
Change: ConnectionError should be renamed to ConnectionRefused.
Closes-Bug: #1240950
Change-Id: I73219d29efd71185cdf6ff56a7fe41165541681f
Diffstat (limited to 'troveclient/client.py')
-rw-r--r-- | troveclient/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/troveclient/client.py b/troveclient/client.py index 95dbfbf..74192e9 100644 --- a/troveclient/client.py +++ b/troveclient/client.py @@ -197,7 +197,7 @@ class HTTPClient(object): # Catch a connection refused from requests.request self._logger.debug("Connection refused: %s" % e) msg = 'Unable to establish connection: %s' % e - raise exceptions.ConnectionError(msg) + raise exceptions.ConnectionRefused(msg) self._logger.debug( "Failed attempt(%s of %s), retrying in %s seconds" % (attempts, self.retries, backoff)) |