From 33df9b77b153ed9278374e6e8381e5ba7e718d0d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 26 Mar 2015 15:54:23 -0400 Subject: [PATCH] correctly import InvalidProtocol from its right location Signed-off-by: Alfredo Deza --- radosgw_agent/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.47.3