From 5ddb04358979a12420756e87cc6a2e63412af542 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 6 Mar 2015 10:33:10 -0500 Subject: [PATCH] just re-raise AgentErrors when getting the region map Signed-off-by: Alfredo Deza --- radosgw_agent/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radosgw_agent/cli.py b/radosgw_agent/cli.py index ff70006..263ffdd 100644 --- a/radosgw_agent/cli.py +++ b/radosgw_agent/cli.py @@ -283,7 +283,13 @@ def main(): try: region_map = client.get_region_map(dest_conn) + except AgentError: + # anything that we know about and are correctly raising should + # just get raised so that the decorator can handle it + raise except Exception as error: + # otherwise, we have the below exception that will nicely deal with + # explaining what happened raise RegionMapError(error) client.configure_endpoints(region_map, dest, src, args.metadata_only) -- 2.47.3