From 20060b102ae6e66167bc546630894e0bbed2fb7f Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Thu, 24 Jul 2014 17:38:17 -0400 Subject: 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 --- cinderclient/client.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.1