get_connection should raise httplib.InvalidURL
In http.py the exception raised in get_connection should be httplib.InvalidURL rather than httplib.InvalidUrl. Fix for bug 1048698. Change-Id: I7f18321fe7d8669b3b95bf823273ee8ae6961661
This commit is contained in:
@@ -79,7 +79,7 @@ class HTTPClient(object):
|
||||
try:
|
||||
return _class(*self.connection_params[1],
|
||||
**self.connection_params[2])
|
||||
except httplib.InvalidUrl:
|
||||
except httplib.InvalidURL:
|
||||
raise exc.InvalidEndpoint()
|
||||
|
||||
def log_curl_request(self, method, url, kwargs):
|
||||
|
Reference in New Issue
Block a user