summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2014-07-24 17:38:17 -0400
committerEric Harney <eharney@redhat.com>2014-07-24 17:40:03 -0400
commit20060b102ae6e66167bc546630894e0bbed2fb7f (patch)
tree3d1873b11119299508ac651f747d583c777acf16
parentfd8aa394580c281f55af31874abb9183aeb469a9 (diff)
downloadpython-cinderclient-20060b102ae6e66167bc546630894e0bbed2fb7f.tar.gz
Change "Connection refused" to "Connection error"
The python-requests documentation indicates that the ConnectionError exception can be raised for reasons other than "connection refused". Let's just say "error" rather than implying the wrong type of failure. Change-Id: I2205e27c7c68164db430cdfdc71b57b3002b24be
-rw-r--r--cinderclient/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cinderclient/client.py b/cinderclient/client.py
index 3145324..906554a 100644
--- a/cinderclient/client.py
+++ b/cinderclient/client.py
@@ -315,8 +315,7 @@ class HTTPClient(CinderClientMixin):
else:
raise
except requests.exceptions.ConnectionError as e:
- # Catch a connection refused from requests.request
- self._logger.debug("Connection refused: %s" % e)
+ self._logger.debug("Connection error: %s" % e)
if attempts > self.retries:
msg = 'Unable to establish connection: %s' % e
raise exceptions.ConnectionError(msg)