From 61b359efa836b5e25d85892e2772fd9856062103 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Mon, 10 Sep 2012 14:57:45 +0000 Subject: [PATCH] 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 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 0d29fffee..6464ee99f 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -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):