From: Alfredo Deza Date: Thu, 26 Mar 2015 19:54:23 +0000 (-0400) Subject: correctly import InvalidProtocol from its right location X-Git-Tag: v1.2.2~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27%2Fhead;p=radosgw-agent.git correctly import InvalidProtocol from its right location Signed-off-by: Alfredo Deza --- diff --git a/radosgw_agent/cli.py b/radosgw_agent/cli.py index 75ea1f2..10d8e6e 100644 --- a/radosgw_agent/cli.py +++ b/radosgw_agent/cli.py @@ -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))