diff options
author | Eric Harney <eharney@redhat.com> | 2014-07-24 17:38:17 -0400 |
---|---|---|
committer | Eric Harney <eharney@redhat.com> | 2014-07-24 17:40:03 -0400 |
commit | 20060b102ae6e66167bc546630894e0bbed2fb7f (patch) | |
tree | 3d1873b11119299508ac651f747d583c777acf16 | |
parent | fd8aa394580c281f55af31874abb9183aeb469a9 (diff) | |
download | python-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.py | 3 |
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) |