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:
Stuart McLaren
2012-09-10 14:57:45 +00:00
parent def324ec52
commit 61b359efa8

View File

@@ -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):