aboutsummaryrefslogtreecommitdiffstats
path: root/services/api
diff options
context:
space:
mode:
authorstark, steven <ss820f@att.com>2018-03-20 15:10:51 -0700
committerstark, steven <ss820f@att.com>2018-03-20 15:10:51 -0700
commit0c1d5d8be71aa8d07c3c43dacc91b04a91ca1b80 (patch)
tree904a3f18dc6f83182129fb1a4f267ca2368b1d32 /services/api
parent71891b3040605103397ffa7fb349215eced3a2c3 (diff)
VVP fixing flake 8 errors during build
modifed files to pass flake8 Change-Id: Id0edd7364aec13d5b01c12f6a9cac03ed3c70d93 Issue-ID: VVP-42 Signed-off-by: stark, steven <ss820f@att.com>
Diffstat (limited to 'services/api')
-rw-r--r--services/api/api_rados.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/api/api_rados.py b/services/api/api_rados.py
index cdad7d4..9a130b1 100644
--- a/services/api/api_rados.py
+++ b/services/api/api_rados.py
@@ -82,7 +82,7 @@ class APIRados:
logger.error("Bucket not found. Retry #%s" % counter+1)
time.sleep(session.wait_until_time_pause_long)
else:
- raise TimeoutError("Max retries exceeded, failing test...")
+ raise Exception("Max retries exceeded, failing test...")
grants = bucket.list_grants()
return grants
@@ -97,7 +97,7 @@ class APIRados:
counter+1, Constants.RGWAConstants.BUCKET_RETRIES_NUMBER))
time.sleep(session.wait_until_time_pause_long)
else:
- raise TimeoutError("Max retries exceeded, failing test...")
+ raise Exception("Max retries exceeded, failing test...")
logger.debug("bucket are ready to continue!")
return True