]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
correctly import InvalidProtocol from its right location wip-11246 27/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 26 Mar 2015 19:54:23 +0000 (15:54 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 26 Mar 2015 19:54:23 +0000 (15:54 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/cli.py

index 75ea1f28951c6c52be66984383a586e1bad82074..10d8e6edf7fd39272339451014d76bc918e116ac 100644 (file)
@@ -17,7 +17,7 @@ from radosgw_agent import client
 from radosgw_agent import util
 from radosgw_agent.util import string
 from radosgw_agent.util.decorators import catches
-from radosgw_agent.exceptions import AgentError, RegionMapError
+from radosgw_agent.exceptions import AgentError, RegionMapError, InvalidProtocol
 from radosgw_agent import sync, config
 
 log = logging.getLogger()
@@ -34,7 +34,7 @@ def check_positive_int(string):
 def check_endpoint(endpoint):
     try:
         return client.parse_endpoint(endpoint)
-    except client.InvalidProtocol as e:
+    except InvalidProtocol as e:
         raise argparse.ArgumentTypeError(str(e))
     except client.InvalidHost as e:
         raise argparse.ArgumentTypeError(str(e))