Skip to content

Commit

Permalink
get_connection should raise httplib.InvalidURL
Browse files Browse the repository at this point in the history
In http.py the exception raised in get_connection
should be httplib.InvalidURL rather than httplib.InvalidUrl.

Fix for bug 1048698.

Change-Id: I7f18321fe7d8669b3b95bf823273ee8ae6961661
  • Loading branch information
Stuart McLaren committed Sep 10, 2012
1 parent def324e commit 61b359e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glanceclient/common/http.py
Expand Up @@ -79,7 +79,7 @@ def get_connection(self):
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):
Expand Down

0 comments on commit 61b359e

Please sign in to comment.